mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
BUGFIX: Fix renaming of single-file torrents (by Vladimir Golovnev)
This commit is contained in:
parent
6580d23263
commit
721fa821f7
3 changed files with 3 additions and 1 deletions
|
@ -793,5 +793,5 @@ QString misc::fileName(QString file_path)
|
|||
const int slash_index = file_path.lastIndexOf('/');
|
||||
if(slash_index == -1)
|
||||
return file_path;
|
||||
return file_path.mid(slash_index);
|
||||
return file_path.mid(slash_index+1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue