- Fix .qbittorrent folder not being created. This bug was introduced in v2.0.1 and it is very important.

This commit is contained in:
Christophe Dumez
2009-12-18 15:15:32 +00:00
parent d5c174a6f8
commit 77d7a1ec49
2 changed files with 6 additions and 0 deletions

View File

@@ -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;
}