BUGFIX: Fix saving to drive root on Windows

This commit is contained in:
Christophe Dumez
2010-09-25 17:38:20 +00:00
parent a25b6e087b
commit fd31f632d9
3 changed files with 8 additions and 1 deletions

View File

@@ -2490,7 +2490,10 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
qDebug("getSavePath, got save_path from persistent data: %s", qPrintable(savePath));
}
// Clean path
savePath = savePath.replace("\\", "/");
savePath = misc::expandPath(savePath);
if(!savePath.endsWith("/"))
savePath += "/";
return savePath;
}