mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Code clean up
This commit is contained in:
parent
c9591a66e8
commit
2747481816
1 changed files with 0 additions and 1 deletions
|
@ -557,7 +557,6 @@ QString QTorrentHandle::root_path() const
|
|||
return save_path();
|
||||
QString first_filepath = filepath_at(0);
|
||||
const int slashIndex = first_filepath.indexOf(QRegExp("[/\\\\]"));
|
||||
QString root_folder;
|
||||
if (slashIndex >= 0)
|
||||
return QDir(save_path()).absoluteFilePath(first_filepath.left(slashIndex));
|
||||
return save_path();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue