Minor Windows bug fixes

This commit is contained in:
Christophe Dumez
2010-07-25 15:30:26 +00:00
parent ff08abe177
commit afaca423cc
3 changed files with 12 additions and 0 deletions

View File

@@ -967,7 +967,11 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
}
}
// Processing torrents
#ifdef Q_WS_WIN
const QString file = path.trimmed().replace("file:///", "", Qt::CaseInsensitive);
#else
const QString file = path.trimmed().replace("file://", "", Qt::CaseInsensitive);
#endif
if(file.isEmpty()) {
return h;
}