1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

Code clean up

This commit is contained in:
Christophe Dumez 2012-07-02 19:57:16 +03:00
parent c9591a66e8
commit 2747481816

View File

@ -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();