Browse Source

Fix qBittorrent run on Windows startup.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 11 years ago
parent
commit
64b06c4612
  1. 2
      src/preferences/preferences.h

2
src/preferences/preferences.h

@ -204,7 +204,7 @@ public: @@ -204,7 +204,7 @@ public:
void setStartup(bool b) {
QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", QSettings::NativeFormat);
if (b) {
const QString bin_path = "\""+qApp->applicationFilePath()+"\"";
const QString bin_path = "\"" + fsutils::toNativePath(qApp->applicationFilePath()) + "\"";
settings.setValue("qBittorrent", bin_path);
}
else {

Loading…
Cancel
Save