1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
Dubslow 2015-02-14 17:26:21 -06:00
parent 08c78ec4cf
commit eeb8c10bc3
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ namespace Platform
{
inline std::wstring currentCommandLine()
{
return ("\"" + QApplication::applicationFilePath().replace('/', '\\') + "\" -P \"" +
return ("\"" + QApplication::applicationFilePath().replace('/', '\\') + "\" -p \"" +
Settings::getInstance().getCurrentProfile() + "\"").toStdWString();
}

View File

@ -35,7 +35,7 @@ namespace Platform
inline QString currentCommandLine()
{
return "\"" + QApplication::applicationFilePath() + "\" -P \"" +
return "\"" + QApplication::applicationFilePath() + "\" -p \"" +
Settings::getInstance().getCurrentProfile() + "\"";
}
}

View File

@ -163,7 +163,7 @@ void IdentityForm::onRenameClicked()
Settings::getInstance().setAutorun(false);
Settings::getInstance().setCurrentProfile(name);
if (resetAutorun)
Settings::getInstance().setAutorun(true); // fixes -P flag in autostart command line
Settings::getInstance().setAutorun(true); // fixes -p flag in autostart command line
break;
}
} while (true);