Fix building on OSX when autoupdate is disabled 0.9.20
authorkoda
Mon, 01 Jun 2015 14:30:22 +0200
branch0.9.20
changeset 9932 99572fea028e
parent 9930 c38cdb5dd37c
child 9934 57f9ce8b2854
Fix building on OSX when autoupdate is disabled
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Wed Mar 05 12:35:51 2014 +0100
+++ 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();