Use | operator for QShortcut

This commit is contained in:
Jonas Kvinge 2020-09-04 20:43:02 +02:00
parent 71dc47d6c9
commit 4b67aee020
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSDBase *osd
ui_->action_toggle_show_sidebar->setChecked(show_sidebar);
QShortcut *close_window_shortcut = new QShortcut(this);
close_window_shortcut->setKey(Qt::CTRL + Qt::Key_W);
close_window_shortcut->setKey(Qt::CTRL | Qt::Key_W);
connect(close_window_shortcut, SIGNAL(activated()), SLOT(SetHiddenInTray()));
CheckFullRescanRevisions();