From: Chih-Hsuan Yen Date: Sat, 2 Jun 2018 12:58:33 +0000 (+0800) Subject: Fix build without Sparkle.framework X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~44^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6962cbf582b4432508c0bb127dd7230868f93884;p=nextcloud-desktop.git Fix build without Sparkle.framework (PR #6567) --- diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 16658f8a3..2b37a2053 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -280,7 +280,7 @@ void GeneralSettings::slotUpdateInfo() _ui->autoCheckForUpdatesCheckBox->setChecked(ConfigFile().autoUpdateCheck()); } -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) && defined(HAVE_SPARKLE) else if (auto sparkleUpdater = qobject_cast(Updater::instance())) { _ui->updateStateLabel->setText(sparkleUpdater->statusString()); _ui->restartButton->setVisible(false); @@ -324,7 +324,7 @@ void GeneralSettings::slotUpdateChannelChanged(const QString &channel) updater->setUpdateUrl(Updater::updateUrl()); updater->checkForUpdate(); } -#ifdef Q_OS_MAC +#if defined(Q_OS_MAC) && defined(HAVE_SPARKLE) else if (auto updater = qobject_cast(Updater::instance())) { updater->setUpdateUrl(Updater::updateUrl()); updater->checkForUpdate();