mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Merge pull request #1375 from glassez/win-startup
Fix qBittorrent run on Windows startup.
This commit is contained in:
commit
acb32d41fa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue