- BUGFIX: ~/qBT_dir is created only when it is actually used

This commit is contained in:
Christophe Dumez
2009-12-12 22:39:29 +00:00
2 changed files with 1 additions and 5 deletions

View File

@@ -215,11 +215,6 @@ 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;
}