diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-12-15 17:02:33 +0300 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-12-30 18:17:47 +0300 |
commit | 552427ffc3a1a997987f14dcd2ea0a62f3712202 (patch) | |
tree | e7b70081d603f5eba41a98501e95a7b86df774a2 /src/common | |
parent | 69915ab5942ab95c1c25ed9ecbaca2d67ac77522 (diff) |
Update windows launch on start binary location
Fixes: #7672
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/utility_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/utility_win.cpp b/src/common/utility_win.cpp index 8a56bcd41..c6f9c0066 100644 --- a/src/common/utility_win.cpp +++ b/src/common/utility_win.cpp @@ -94,7 +94,7 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName, QString runPath = QLatin1String(runPathC); QSettings settings(runPath, QSettings::NativeFormat); if (enable) { - settings.setValue(appName, QCoreApplication::applicationFilePath().replace(QLatin1Char('/'), QLatin1Char('\\'))); + settings.setValue(appName, QDir::toNativeSeparators(QCoreApplication::applicationFilePath())); } else { settings.remove(appName); } |