diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4e78f5dd..2bb0a237 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -6495,10 +6495,12 @@ void MainWindow::dropEvent(QDropEvent *event) void MainWindow::keyReleaseEvent(QKeyEvent *event) { - // if the menubar is hidden, pressing Alt will make it visible - if (event->key() == Qt::Key_Alt) { - if (!ui->menuBar->isVisible()) { - ui->menuBar->show(); + if (!UILocker::instance().locked()) { + // if the menubar is hidden, pressing Alt will make it visible + if (event->key() == Qt::Key_Alt) { + if (!ui->menuBar->isVisible()) { + ui->menuBar->show(); + } } } |
