mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Save "Run external program" input as is. Closes #4830.
This commit is contained in:
parent
15ec515872
commit
6835b99f10
1 changed files with 2 additions and 2 deletions
|
@ -1127,12 +1127,12 @@ void Preferences::setAutoRunEnabled(bool enabled)
|
||||||
|
|
||||||
QString Preferences::getAutoRunProgram() const
|
QString Preferences::getAutoRunProgram() const
|
||||||
{
|
{
|
||||||
return Utils::Fs::fromNativePath(value("AutoRun/program").toString());
|
return value("AutoRun/program").toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::setAutoRunProgram(const QString &program)
|
void Preferences::setAutoRunProgram(const QString &program)
|
||||||
{
|
{
|
||||||
setValue("AutoRun/program", Utils::Fs::fromNativePath(program));
|
setValue("AutoRun/program", program);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Preferences::shutdownWhenDownloadsComplete() const
|
bool Preferences::shutdownWhenDownloadsComplete() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue