mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Disable shortcut
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user