diff options
author | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-06-13 23:41:57 +0300 |
---|---|---|
committer | Dominik Schmidt <domme@tomahawk-player.org> | 2018-06-27 11:25:33 +0300 |
commit | e2a8975ad842011ef6e175af5b802be6b9f9a8dc (patch) | |
tree | 1826a58b63a342b7ff7bcdd79f7169fdc4f3a422 /src/gui/updater | |
parent | 0dc8bde694a52260c221c83771c76e91c0504e17 (diff) |
Extract filename of updateFile without leading slash
Diffstat (limited to 'src/gui/updater')
-rw-r--r-- | src/gui/updater/ocupdater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index ff7c33766..d11337814 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -323,7 +323,7 @@ void NSISUpdater::versionInfoArrived(const UpdateInfo &info) showDialog(info); } if (!url.isEmpty()) { - _targetFile = cfg.configPath() + url.mid(url.lastIndexOf('/')); + _targetFile = cfg.configPath() + url.mid(url.lastIndexOf('/')+1); if (QFile(_targetFile).exists()) { setDownloadState(DownloadComplete); } else { |