Do not display !.qB extension in save path

This commit is contained in:
Christophe Dumez
2010-07-25 14:00:35 +00:00
parent 7ee9abd646
commit 5d1a584eac
3 changed files with 5 additions and 2 deletions

View File

@@ -460,6 +460,9 @@ QString QTorrentHandle::firstFileSavePath() const {
if(!fsave_path.endsWith("/"))
fsave_path += "/";
fsave_path += misc::toQStringU(h.get_torrent_info().file_at(0).path.string());
// Remove .!qB extension
if(fsave_path.endsWith(".!qB", Qt::CaseInsensitive))
fsave_path.chop(4);
return fsave_path;
}