Skip to content

Commit 4b80f34

Browse files
authored
DDF Editor add File -> Close menu entry (dresden-elektronik#7910)
There is an ongoing issue that the DDF Editor can't be closed due the window title bar is out of screen. This PR adds the File -> Close action as menu entry with Shortcut Ctrl-W as an workaround. Forum: https://forum.phoscon.de/t/new-deconz-gui-windows-control-dwm-issues/5097
1 parent 75acc72 commit 4b80f34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/device_widget.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ DDF_EditorDialog::DDF_EditorDialog(DeviceWidget *parent) :
6767
hotReload->setShortcut(tr("Ctrl+R"));
6868
connect(hotReload, &QAction::triggered, parent, &DeviceWidget::hotReload);
6969

70+
QAction *close = fileMenu->addAction(tr("&Close"));
71+
close->setShortcut(QKeySequence::Close);
72+
connect(close, &QAction::triggered, this, &QMainWindow::close);
73+
7074
QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
7175
QAction *docAction = helpMenu->addAction(tr("DDF documentation"));
7276
connect(docAction, &QAction::triggered, [](){

0 commit comments

Comments
 (0)