QTfrontend/hwform.cpp
changeset 4894 efcea232bbf6
parent 4870 c02406028e02
parent 4759 4fa0c3da81f8
child 4897 11598e7aa7e6
--- a/QTfrontend/hwform.cpp	Mon Jan 31 21:59:59 2011 +0100
+++ b/QTfrontend/hwform.cpp	Tue Feb 01 00:18:25 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();