QTfrontend/hwform.cpp
changeset 5095 15dd764b728c
parent 5087 d3af455a868e
child 5112 4e2ebd8ac298
equal deleted inserted replaced
5093:7eb35faa7f7a 5095:15dd764b728c
    59 #include "bgwidget.h"
    59 #include "bgwidget.h"
    60 #include "xfire.h"
    60 #include "xfire.h"
    61 #include "drawmapwidget.h"
    61 #include "drawmapwidget.h"
    62 
    62 
    63 #ifdef __APPLE__
    63 #ifdef __APPLE__
    64 #include "CocoaInitializer.h"
       
    65 #include "M3Panel.h"
    64 #include "M3Panel.h"
    66 #ifdef SPARKLE_ENABLED
    65 #ifdef SPARKLE_ENABLED
    67 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml"
    66 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml"
    68 #include "SparkleAutoUpdater.h"
    67 #include "SparkleAutoUpdater.h"
    69 #endif
    68 #endif
    99 #ifdef __APPLE__
    98 #ifdef __APPLE__
   100     panel = new M3Panel;
    99     panel = new M3Panel;
   101 
   100 
   102 #ifdef SPARKLE_ENABLED
   101 #ifdef SPARKLE_ENABLED
   103     AutoUpdater* updater;
   102     AutoUpdater* updater;
   104     CocoaInitializer initializer;
   103 
   105     updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL);
   104     updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL);
   106     if (updater && config->isAutoUpdateEnabled())
   105     if (updater && config->isAutoUpdateEnabled())
   107         updater->checkForUpdates();
   106         updater->checkForUpdates();
   108 #endif
   107 #endif
   109 
   108