QTfrontend/hwform.cpp
branch0.9.18
changeset 7933 223b3a195474
parent 7927 a96614777ce6
child 8048 e14daa2508fc
child 8049 133e22b5c410
equal deleted inserted replaced
7930:a4320272bb9a 7933:223b3a195474
    98 #include "DataManager.h"
    98 #include "DataManager.h"
    99 
    99 
   100 #ifdef __APPLE__
   100 #ifdef __APPLE__
   101 #include "M3Panel.h"
   101 #include "M3Panel.h"
   102 #ifdef SPARKLE_ENABLED
   102 #ifdef SPARKLE_ENABLED
   103 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml"
       
   104 #include "SparkleAutoUpdater.h"
   103 #include "SparkleAutoUpdater.h"
   105 #endif
   104 #endif
   106 #endif
   105 #endif
   107 
   106 
   108 
   107 
   150     panel = new M3Panel;
   149     panel = new M3Panel;
   151 
   150 
   152 #ifdef SPARKLE_ENABLED
   151 #ifdef SPARKLE_ENABLED
   153     AutoUpdater* updater;
   152     AutoUpdater* updater;
   154 
   153 
   155     updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL);
   154     updater = new SparkleAutoUpdater();
   156     if (updater && config->isAutoUpdateEnabled())
   155     if (updater && config->isAutoUpdateEnabled())
   157         updater->checkForUpdates();
   156         updater->checkForUpdates();
   158 #endif
   157 #endif
   159 
   158 
   160     QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this);
   159     QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this);