# HG changeset patch # User koda # Date 1433161822 -7200 # Node ID 0e122b87ffbc83af6bef3ad8808ed354f1fa3a3a # Parent 7341e0c3f9662c2650f6a25d99d736acca98b676 Fix building on OSX when autoupdate is disabled diff -r 7341e0c3f966 -r 0e122b87ffbc 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();