From 3534ca411b6c0023cb6ac253a87337f67b4d8125 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 19 Oct 2016 10:49:51 +0200 Subject: [PATCH] Changed: Save default profile when clicking on Play or Configure --- .../tools/client/ryzom_installer/src/mainwindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp index d6f356f8e..5d61f0924 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/mainwindow.cpp @@ -145,7 +145,11 @@ void CMainWindow::onPlayClicked() bool started = QProcess::startDetached(executable, arguments, server.getDirectory()); // define this profile as default one - CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex); + if (started) + { + CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex); + CConfigFile::getInstance()->save(); + } } void CMainWindow::onConfigureClicked() @@ -174,7 +178,11 @@ void CMainWindow::onConfigureClicked() bool started = QProcess::startDetached(executable, arguments); - CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex); + if (started) + { + CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex); + CConfigFile::getInstance()->save(); + } } void CMainWindow::onProfiles()