Commit 421ddfee authored by Alexander Trufanov's avatar Alexander Trufanov
Browse files

Use mkpath() if ~/.local/share/ktorrent/ doesn't exist

To avoid problems at launch if whole ~/.local/ folder was removed
parent ed63f28f
......@@ -56,7 +56,7 @@ QString DataDir(CreationMode mode)
ktorrent4DataFolder.clear();
}
if (ktorrent4DataFolder.isEmpty() || !QFile::rename(ktorrent4DataFolder, dataDirPath))
fileInfo.dir().mkdir(fileInfo.fileName());
fileInfo.dir().mkpath(fileInfo.fileName());
}
}
// if (!str.endsWith(bt::DirSeparator()))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment