QTfrontend/hwform.cpp
branch0.9.15
changeset 4759 4fa0c3da81f8
parent 4751 849740a91d36
child 4894 efcea232bbf6
--- a/QTfrontend/hwform.cpp	Mon Jan 17 08:37:43 2011 +0100
+++ b/QTfrontend/hwform.cpp	Mon Jan 17 14:53:14 2011 +0100
@@ -36,6 +36,7 @@
 #include <QTableView>
 #include <QCryptographicHash>
 #include <QSignalMapper>
+#include <QShortcut>
 
 #include "hwform.h"
 #include "game.h"
@@ -104,6 +105,10 @@
     if (updater && config->isAutoUpdateEnabled())
         updater->checkForUpdates();
 #endif
+#else
+    // ctrl+q closes frontend for consistency
+    QShortcut *closeFrontend = new QShortcut(QKeySequence("Ctrl+Q"), this);
+    connect (closeFrontend, SIGNAL(activated()), this, SLOT(close()));
 #endif
 
     UpdateTeamsLists();