- Do not use home folder as a fallback when the destination folder is not accessible

This commit is contained in:
Christophe Dumez
2009-12-17 20:01:18 +00:00
parent 779b53722b
commit b85d51ba79
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.0.2 * Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.0.2
- BUGFIX: Fix RSS Feed downloader for some feeds - BUGFIX: Fix RSS Feed downloader for some feeds
- BUGFIX: Do not use home folder as a fallback when the save path is not accessible
* Sun Dec 13 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.1 * Sun Dec 13 2009 - Christophe Dumez <chris@qbittorrent.org> - v2.0.1
- BUGFIX: µTorrent user-agent is now spoofed correctly - BUGFIX: µTorrent user-agent is now spoofed correctly

View File

@@ -1671,7 +1671,7 @@ QString Bittorrent::getSavePath(QString hash) {
if(!saveDir.mkpath(saveDir.path())) { if(!saveDir.mkpath(saveDir.path())) {
std::cerr << "Couldn't create the save directory: " << saveDir.path().toLocal8Bit().data() << "\n"; std::cerr << "Couldn't create the save directory: " << saveDir.path().toLocal8Bit().data() << "\n";
// XXX: handle this better // XXX: handle this better
return QDir::homePath(); //return QDir::homePath();
} }
} }
return savePath; return savePath;