mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
Minor Windows bug fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user