1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #5931

Igor Kushnir (1):
      fix(ui): quit qTox on Ctrl+Q when "Close to tray" is enabled
This commit is contained in:
sudden6 2019-11-17 22:01:50 +01:00
commit 25943be3c2
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -334,7 +334,8 @@ void Widget::init()
// initial request with the sanitized name so there is no work for us to do
// keyboard shortcuts
new QShortcut(Qt::CTRL + Qt::Key_Q, this, SLOT(close()));
auto* const quitShortcut = new QShortcut(Qt::CTRL + Qt::Key_Q, this);
connect(quitShortcut, &QShortcut::activated, qApp, &QApplication::quit);
new QShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_Tab, this, SLOT(previousContact()));
new QShortcut(Qt::CTRL + Qt::Key_Tab, this, SLOT(nextContact()));
new QShortcut(Qt::CTRL + Qt::Key_PageUp, this, SLOT(previousContact()));