mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Fix qBittorrent run on Windows startup.
This commit is contained in:
parent
f5cd39cfba
commit
64b06c4612
@ -204,7 +204,7 @@ public:
|
|||||||
void setStartup(bool b) {
|
void setStartup(bool b) {
|
||||||
QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", QSettings::NativeFormat);
|
QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", QSettings::NativeFormat);
|
||||||
if (b) {
|
if (b) {
|
||||||
const QString bin_path = "\""+qApp->applicationFilePath()+"\"";
|
const QString bin_path = "\"" + fsutils::toNativePath(qApp->applicationFilePath()) + "\"";
|
||||||
settings.setValue("qBittorrent", bin_path);
|
settings.setValue("qBittorrent", bin_path);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user