BUGFIX: Fix renaming of single-file torrents (by Vladimir Golovnev)

This commit is contained in:
Christophe Dumez
2011-01-23 08:34:54 +00:00
parent 32ed944ac8
commit bd8c03ecd8
4 changed files with 4 additions and 1 deletions

View File

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