diff --git a/src/mac/tomahawkapp_mac.mm b/src/mac/tomahawkapp_mac.mm index 3575992b2..fae3e1d51 100644 --- a/src/mac/tomahawkapp_mac.mm +++ b/src/mac/tomahawkapp_mac.mm @@ -56,8 +56,11 @@ - (Tomahawk::PlatformInterface*) application_handler; - (void) setApplicationHandler: (Tomahawk::PlatformInterface*)handler; +#ifdef HAVE_SPARKLE // SUUpdaterDelegate - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update; +#endif + @end @@ -209,12 +212,14 @@ [super sendEvent: event]; } +#ifdef HAVE_SPARKLE - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update { tLog() << "NSApp in willInstallUpdate, deleting Phonon objects"; AudioEngine::instance()->stop(); delete AudioEngine::instance(); } +#endif @end