mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #1158
This commit is contained in:
parent
08c78ec4cf
commit
eeb8c10bc3
|
@ -25,7 +25,7 @@ namespace Platform
|
||||||
{
|
{
|
||||||
inline std::wstring currentCommandLine()
|
inline std::wstring currentCommandLine()
|
||||||
{
|
{
|
||||||
return ("\"" + QApplication::applicationFilePath().replace('/', '\\') + "\" -P \"" +
|
return ("\"" + QApplication::applicationFilePath().replace('/', '\\') + "\" -p \"" +
|
||||||
Settings::getInstance().getCurrentProfile() + "\"").toStdWString();
|
Settings::getInstance().getCurrentProfile() + "\"").toStdWString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace Platform
|
||||||
|
|
||||||
inline QString currentCommandLine()
|
inline QString currentCommandLine()
|
||||||
{
|
{
|
||||||
return "\"" + QApplication::applicationFilePath() + "\" -P \"" +
|
return "\"" + QApplication::applicationFilePath() + "\" -p \"" +
|
||||||
Settings::getInstance().getCurrentProfile() + "\"";
|
Settings::getInstance().getCurrentProfile() + "\"";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,7 +163,7 @@ void IdentityForm::onRenameClicked()
|
||||||
Settings::getInstance().setAutorun(false);
|
Settings::getInstance().setAutorun(false);
|
||||||
Settings::getInstance().setCurrentProfile(name);
|
Settings::getInstance().setCurrentProfile(name);
|
||||||
if (resetAutorun)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
} while (true);
|
} while (true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user