Skip to content

Commit 4291d0b

Browse files
authored
Merge pull request #9708 from nextcloud/backport/9702/stable-33.0
[stable-33.0] fix(macOS): hide dock icon when closing settings with ⌘+W
2 parents f24dc9c + 5b17033 commit 4291d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/settingsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
153153
// People perceive this as a Window, so also make Ctrl+W work
154154
auto *closeWindowAction = new QAction(this);
155155
closeWindowAction->setShortcut(QKeySequence("Ctrl+W"));
156-
connect(closeWindowAction, &QAction::triggered, this, &SettingsDialog::accept);
156+
connect(closeWindowAction, &QAction::triggered, this, &SettingsDialog::close);
157157
addAction(closeWindowAction);
158158

159159
setObjectName("Settings"); // required as group for saveGeometry call

0 commit comments

Comments
 (0)