diff --git a/Changelog b/Changelog index 03f6f5dc7..2c1a0bc29 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ - BUGFIX: Do not use home folder as a fallback when the save path is not accessible - BUGFIX: Fix Mininova, ThePirateBay search engine plugins - BUGFIX: Read RSS articles are remembered on restart for feeds with no torrents attached + - BUGFIX: Fix .qbittorrent folder not being created (introduced in v2.0.1) * Sun Dec 13 2009 - Christophe Dumez - v2.0.1 - BUGFIX: µTorrent user-agent is now spoofed correctly diff --git a/src/misc.h b/src/misc.h index 80ecf3284..0cbc41630 100644 --- a/src/misc.h +++ b/src/misc.h @@ -215,6 +215,11 @@ public: // return qBittorrent config path static QString qBittorrentPath() { QString qBtPath = QDir::homePath()+QDir::separator()+QString::fromUtf8(".qbittorrent") + QDir::separator(); + // Create dir if it does not exist + if(!QFile::exists(qBtPath)){ + QDir dir(qBtPath); + dir.mkpath(qBtPath); + } return qBtPath; }