# HG changeset patch # User koda # Date 1295272394 -3600 # Node ID 4fa0c3da81f857924e2de6ff6edc6fc2860f9340 # Parent 9f20a38a385a391516804cdadf024b430476b496 ctrl+q closes frontend also on linux and windows diff -r 9f20a38a385a -r 4fa0c3da81f8 QTfrontend/hwform.cpp --- 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 #include #include +#include #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();