diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-10-19 13:51:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 13:51:35 +0200 |
commit | 46c57e120f50084b310879286a2774334b53d2af (patch) | |
tree | c07fb5de0126acd5b2029d8faf28fe9bdfc74316 /launcher/ui/dialogs/NewInstanceDialog.cpp | |
parent | 6b52ee61aebe147c2717f71675b8ca6f6ab7b60a (diff) | |
parent | c90a88b6b6cf1b7d0fe2b6784de880762201f4a9 (diff) | |
download | PrismLauncher-46c57e120f50084b310879286a2774334b53d2af.tar.gz PrismLauncher-46c57e120f50084b310879286a2774334b53d2af.tar.bz2 PrismLauncher-46c57e120f50084b310879286a2774334b53d2af.zip |
Merge pull request #27 from flowln/ftb_install_improve
Diffstat (limited to 'launcher/ui/dialogs/NewInstanceDialog.cpp')
-rw-r--r-- | launcher/ui/dialogs/NewInstanceDialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/NewInstanceDialog.cpp b/launcher/ui/dialogs/NewInstanceDialog.cpp index d203795a..df182f09 100644 --- a/launcher/ui/dialogs/NewInstanceDialog.cpp +++ b/launcher/ui/dialogs/NewInstanceDialog.cpp @@ -139,6 +139,10 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString void NewInstanceDialog::reject() { APPLICATION->settings()->set("NewInstanceGeometry", saveGeometry().toBase64()); + + // This is just so that the pages get the close() call and can react to it, if needed. + m_container->prepareToClose(); + QDialog::reject(); } @@ -146,6 +150,10 @@ void NewInstanceDialog::accept() { APPLICATION->settings()->set("NewInstanceGeometry", saveGeometry().toBase64()); importIconNow(); + + // This is just so that the pages get the close() call and can react to it, if needed. + m_container->prepareToClose(); + QDialog::accept(); } |