From 9b33cb5e0dc1cca89eae977d2b5f010c55851fc4 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Thu, 31 Oct 2024 13:01:53 +0100 Subject: [PATCH] Fix compiling when BUILD_UPDATER is set to OFF. Only connect signal/slot for update channels listing when BUILD_UPDATER is ON. Signed-off-by: Camila Ayres --- src/gui/settingsdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index 261526e11ac27..fc09c0cdce04d 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -127,9 +127,12 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) // Connect styleChanged events to our widgets, so they can adapt (Dark-/Light-Mode switching) connect(this, &SettingsDialog::styleChanged, generalSettings, &GeneralSettings::slotStyleChanged); + +#if defined(BUILD_UPDATER) connect(AccountManager::instance(), &AccountManager::accountAdded, generalSettings, &GeneralSettings::loadUpdateChannelsList); connect(AccountManager::instance(), &AccountManager::accountRemoved, generalSettings, &GeneralSettings::loadUpdateChannelsList); connect(AccountManager::instance(), &AccountManager::capabilitiesChanged, generalSettings, &GeneralSettings::loadUpdateChannelsList); +#endif QAction *networkAction = createColorAwareAction(QLatin1String(":/client/theme/network.svg"), tr("Network")); _actionGroup->addAction(networkAction);