# # # patch "src/Guitone.cpp" # from [2ac47c52c7ee6fbb935a2d81bbb4e8156b40f45e] # to [d2d5d6e0e2571d95174b70f41468c762c8e0cb50] # # patch "src/Guitone.h" # from [935169a8e02bc159e96a0fc6f52b68429508b7fa] # to [1b4fb21c50bfb497fabc69a9a9b133ffd2765a06] # ============================================================ --- src/Guitone.cpp 2ac47c52c7ee6fbb935a2d81bbb4e8156b40f45e +++ src/Guitone.cpp d2d5d6e0e2571d95174b70f41468c762c8e0cb50 @@ -38,8 +38,12 @@ Guitone::Guitone(int argc, char** argv) Guitone::Guitone(int argc, char** argv) : QApplication(argc, argv), monotoneManager(0), - somethingLoaded(false), updateDialog(0) + somethingLoaded(false) { +#ifndef Q_WS_MACX + updateDialog = 0; +#endif + setQuitOnLastWindowClosed(false); setOrganizationName("Thomas Keller"); @@ -344,7 +348,7 @@ void Guitone::checkForApplicationUpdates #else if (!updateDialog) { - updateDialog = new UpdateDialog(this); + updateDialog = new ApplicationUpdate(NULL); } if (!updateDialog->updateAvailable()) ============================================================ --- src/Guitone.h 935169a8e02bc159e96a0fc6f52b68429508b7fa +++ src/Guitone.h 1b4fb21c50bfb497fabc69a9a9b133ffd2765a06 @@ -23,8 +23,11 @@ #include "MainWindow.h" #include "MonotoneManager.h" +#include "DebugLog.h" + +#ifndef Q_WS_MACX #include "ApplicationUpdate.h" -#include "DebugLog.h" +#endif #include #include @@ -72,7 +75,10 @@ private: QList openWindows; QMutex lock; bool somethingLoaded; + +#ifndef Q_WS_MACX ApplicationUpdate * updateDialog; +#endif }; #endif