mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Disable shortcut
This commit is contained in:
@@ -700,7 +700,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
a = menu.addAction("E&xit");
|
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, [ = ]()
|
c = connect(a, &QAction::triggered, this, [ = ]()
|
||||||
{
|
{
|
||||||
// a close event might already trigger a shutdown
|
// a close event might already trigger a shutdown
|
||||||
|
|||||||
Reference in New Issue
Block a user