|
|
@ -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
|
|
|
|
|
|
|
|
if (started)
|
|
|
|
|
|
|
|
{
|
|
|
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (started)
|
|
|
|
|
|
|
|
{
|
|
|
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
|
|
|
CConfigFile::getInstance()->setDefaultProfileIndex(profileIndex);
|
|
|
|
|
|
|
|
CConfigFile::getInstance()->save();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CMainWindow::onProfiles()
|
|
|
|
void CMainWindow::onProfiles()
|
|
|
|