mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 18:30:53 +00:00
Changed: Save default profile when clicking on Play or Configure
This commit is contained in:
parent
752f5e3cdb
commit
3534ca411b
1 changed files with 10 additions and 2 deletions
|
@ -145,7 +145,11 @@ void CMainWindow::onPlayClicked()
|
||||||
bool started = QProcess::startDetached(executable, arguments, server.getDirectory());
|
bool started = QProcess::startDetached(executable, arguments, server.getDirectory());
|
||||||
|
|
||||||
// define this profile as default one
|
// define this profile as default one
|
||||||
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
if (started)
|
||||||
|
{
|
||||||
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
||||||
|
CConfigFile::getInstance()->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMainWindow::onConfigureClicked()
|
void CMainWindow::onConfigureClicked()
|
||||||
|
@ -174,7 +178,11 @@ void CMainWindow::onConfigureClicked()
|
||||||
|
|
||||||
bool started = QProcess::startDetached(executable, arguments);
|
bool started = QProcess::startDetached(executable, arguments);
|
||||||
|
|
||||||
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
if (started)
|
||||||
|
{
|
||||||
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
||||||
|
CConfigFile::getInstance()->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMainWindow::onProfiles()
|
void CMainWindow::onProfiles()
|
||||||
|
|
Loading…
Reference in a new issue