Skip to content

Commit

Permalink
Merge pull request #6743 from nextcloud/bugfix/mac-build-qtsix
Browse files Browse the repository at this point in the history
Fix macOS build on master
  • Loading branch information
claucambra authored May 13, 2024
2 parents 7a49312 + 4bd0974 commit 390d6a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/common/utility_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <QCoreApplication>
#include <QDir>
#include <QLoggingCategory>
#include <QtMacExtras/QtMacExtras>

#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
Expand Down
8 changes: 2 additions & 6 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,10 @@ if( UNIX AND NOT APPLE )
endif()

if (APPLE)
find_package(Qt${QT_MAJOR_VERSION} COMPONENTS MacExtras)

if (BUILD_FILE_PROVIDER_MODULE)
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras "-framework UserNotifications -framework FileProvider")
target_link_libraries(nextcloudCore PUBLIC "-framework UserNotifications -framework FileProvider")
elseif(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 10.14)
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras "-framework UserNotifications")
else()
target_link_libraries(nextcloudCore PUBLIC Qt::MacExtras)
target_link_libraries(nextcloudCore PUBLIC "-framework UserNotifications")
endif()
endif()

Expand Down
1 change: 0 additions & 1 deletion src/gui/accountsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ AccountSettings::AccountSettings(AccountState *accountState, QWidget *parent)
const auto fpAccountUserIdAtHost = _accountState->account()->userIdAtHostWithPort();
const auto fpSettingsController = Mac::FileProviderSettingsController::instance();
const auto fpSettingsWidget = fpSettingsController->settingsViewWidget(fpAccountUserIdAtHost, fileProviderTab);
fpSettingsLayout->setMargin(0);
fpSettingsLayout->addWidget(fpSettingsWidget);
fileProviderTab->setLayout(fpSettingsLayout);
} else {
Expand Down

0 comments on commit 390d6a5

Please sign in to comment.