mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Code clean up
This commit is contained in:
@@ -557,7 +557,6 @@ QString QTorrentHandle::root_path() const
|
|||||||
return save_path();
|
return save_path();
|
||||||
QString first_filepath = filepath_at(0);
|
QString first_filepath = filepath_at(0);
|
||||||
const int slashIndex = first_filepath.indexOf(QRegExp("[/\\\\]"));
|
const int slashIndex = first_filepath.indexOf(QRegExp("[/\\\\]"));
|
||||||
QString root_folder;
|
|
||||||
if (slashIndex >= 0)
|
if (slashIndex >= 0)
|
||||||
return QDir(save_path()).absoluteFilePath(first_filepath.left(slashIndex));
|
return QDir(save_path()).absoluteFilePath(first_filepath.left(slashIndex));
|
||||||
return save_path();
|
return save_path();
|
||||||
|
|||||||
Reference in New Issue
Block a user