Fix building on OSX when autoupdate is disabled
authorkoda
Mon, 01 Jun 2015 14:30:22 +0200
changeset 10971 0e122b87ffbc
parent 10970 7341e0c3f966
child 10972 bba0f1b7ebbc
Fix building on OSX when autoupdate is disabled
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Tue May 26 23:29:53 2015 +0200
+++ b/QTfrontend/hwform.cpp	Mon Jun 01 14:30:22 2015 +0200
@@ -164,14 +164,12 @@
     ui.pageVideos->init(config);
 #endif
 
-#ifdef __APPLE__
+#if defined(__APPLE__) && defined(SPARKLE_ENABLED)
     if (config->isAutoUpdateEnabled())
     {
         AutoUpdater* updater = NULL;
 
-#ifdef SPARKLE_ENABLED
         updater = new SparkleAutoUpdater();
-#endif
         if (updater)
         {
             updater->checkForUpdates();