Disable shortcut

This commit is contained in:
Klaus Basan
2019-04-27 19:56:55 +02:00
parent 242d6137e5
commit 8d32345849

View File

@@ -700,7 +700,7 @@ namespace BlackGui
menu.addSeparator();
a = menu.addAction("E&xit");
a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q));
// a->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_Q)); // avoid accidentally closing
c = connect(a, &QAction::triggered, this, [ = ]()
{
// a close event might already trigger a shutdown