UI: Implement exit on CTRL + Q for linux

Fixes #3106
This commit is contained in:
Programatic 2020-10-01 11:45:46 -04:00 committed by Jim
parent cab32e7e67
commit f79737d479

View file

@ -326,6 +326,10 @@ OBSBasic::OBSBasic(QWidget *parent)
renameSource->setShortcut({Qt::Key_F2});
#endif
#ifdef __linux__
ui->actionE_xit->setShortcut(Qt::CTRL + Qt::Key_Q);
#endif
auto addNudge = [this](const QKeySequence &seq, const char *s) {
QAction *nudge = new QAction(ui->preview);
nudge->setShortcut(seq);