equal
deleted
inserted
replaced
34 #include <QScrollBar> |
34 #include <QScrollBar> |
35 #include <QDataWidgetMapper> |
35 #include <QDataWidgetMapper> |
36 #include <QTableView> |
36 #include <QTableView> |
37 #include <QCryptographicHash> |
37 #include <QCryptographicHash> |
38 #include <QSignalMapper> |
38 #include <QSignalMapper> |
|
39 #include <QShortcut> |
39 |
40 |
40 #include "hwform.h" |
41 #include "hwform.h" |
41 #include "game.h" |
42 #include "game.h" |
42 #include "team.h" |
43 #include "team.h" |
43 #include "namegen.h" |
44 #include "namegen.h" |
102 CocoaInitializer initializer; |
103 CocoaInitializer initializer; |
103 updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); |
104 updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); |
104 if (updater && config->isAutoUpdateEnabled()) |
105 if (updater && config->isAutoUpdateEnabled()) |
105 updater->checkForUpdates(); |
106 updater->checkForUpdates(); |
106 #endif |
107 #endif |
|
108 #else |
|
109 // ctrl+q closes frontend for consistency |
|
110 QShortcut *closeFrontend = new QShortcut(QKeySequence("Ctrl+Q"), this); |
|
111 connect (closeFrontend, SIGNAL(activated()), this, SLOT(close())); |
107 #endif |
112 #endif |
108 |
113 |
109 UpdateTeamsLists(); |
114 UpdateTeamsLists(); |
110 UpdateCampaignPage(0); |
115 UpdateCampaignPage(0); |
111 UpdateWeapons(); |
116 UpdateWeapons(); |