aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/NewInstanceDialog.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-10-19 13:51:35 +0200
committerGitHub <noreply@github.com>2022-10-19 13:51:35 +0200
commit46c57e120f50084b310879286a2774334b53d2af (patch)
treec07fb5de0126acd5b2029d8faf28fe9bdfc74316 /launcher/ui/dialogs/NewInstanceDialog.cpp
parent6b52ee61aebe147c2717f71675b8ca6f6ab7b60a (diff)
parentc90a88b6b6cf1b7d0fe2b6784de880762201f4a9 (diff)
downloadPrismLauncher-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.cpp8
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();
}