aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-05-20 18:03:29 +0000
committerSaturneric <[email protected]>2022-05-20 18:03:29 +0000
commit4ec3991a821d3bc36aa3c4480ac403b18398f53e (patch)
tree5e8e2bd096cde5b21dfef7bd7e9d7a220416a913
parentfix: improve settings dialog style on macOS (diff)
downloadGpgFrontend-4ec3991a821d3bc36aa3c4480ac403b18398f53e.tar.gz
GpgFrontend-4ec3991a821d3bc36aa3c4480ac403b18398f53e.zip
fix: connect correct signal
-rw-r--r--src/ui/settings/SettingsDialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/settings/SettingsDialog.cpp b/src/ui/settings/SettingsDialog.cpp
index a08a16d0..eefdd3c7 100644
--- a/src/ui/settings/SettingsDialog.cpp
+++ b/src/ui/settings/SettingsDialog.cpp
@@ -65,7 +65,8 @@ SettingsDialog::SettingsDialog(QWidget* parent) : QDialog(parent) {
mainLayout->stretch(0);
setWindowTitle(_("Settings"));
#else
- connect(this, &QDialog::close, this, &SettingsDialog::SlotAccept);
+ connect(this, &QDialog::finished, this, &SettingsDialog::SlotAccept);
+ connect(this, &QDialog::finished, this, &SettingsDialog::deleteLater);
setWindowTitle(_("Preference"));
#endif