Commit 11a38dca authored by Halla Rempt's avatar Halla Rempt

CCBUG:321361 Create subfolders for presets

Instead of refusing to save a certain preset if there's a / in the
name, create the folder and save the preset.
parent 50bfbadf
......@@ -235,6 +235,11 @@ public:
if (save) {
QFileInfo fileInfo(resource->filename());
QDir d(fileInfo.path());
if (!d.exists()) {
d.mkdir(fileInfo.path());
}
if (fileInfo.exists()) {
QString filename = fileInfo.path() + "/" + fileInfo.baseName() + "XXXXXX" + "." + fileInfo.suffix();
kDebug() << "fileName is " << filename;
......
Markdown is supported
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