WSL/SLF GitLab Repository

Commit f8261c18 authored by Michael Reisecker's avatar Michael Reisecker
Browse files

Re-add "Close" menu for Preview Editor

The menu just looks wrong without it... but now we avoid the problem of
CMD+Q by displaying the always available "ESC" shortcut.
parent e8c6983a
......@@ -405,6 +405,10 @@ void PreviewWindow::createMenu()
file_backup->setShortcut(Qt::CTRL + Qt::ALT + Qt::Key_B);
connect(file_backup, &QAction::triggered, this, &PreviewWindow::quickBackup);
auto *file_close_ = new QAction(getIcon("application-exit"), tr("&Close preview"), menu_file);
connect(file_close_, &QAction::triggered, this, [=]{ this->close(); });
/* EDIT menu */
QMenu *menu_edit = this->menuBar()->addMenu(tr("&Edit"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment