Save "Run external program" input as is. Closes #4830.

This commit is contained in:
Chocobo1
2016-02-23 17:10:43 +08:00
committed by sledgehammer999
parent 6d2a0ae83b
commit b4c9cae0d1

View File

@@ -1330,12 +1330,12 @@ void Preferences::setAutoRunEnabled(bool enabled)
QString Preferences::getAutoRunProgram() const
{
return Utils::Fs::fromNativePath(value("AutoRun/program").toString());
return value("AutoRun/program").toString();
}
void Preferences::setAutoRunProgram(const QString &program)
{
setValue("AutoRun/program", Utils::Fs::fromNativePath(program));
setValue("AutoRun/program", program);
}
bool Preferences::shutdownWhenDownloadsComplete() const