Skip to content

Commit b163e34

Browse files
authored
Merge pull request #9702 from nextcloud/i2h3/fix/9328-dock-disappearance
fix(macOS): hide dock icon when closing settings with ⌘+W
2 parents 6cc1ce6 + 30b7fbf commit b163e34

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)