Commit ecd3bac1 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add 'krita' to the writable resource path if the suffix is empty

Resolves T1039
parent 96159e4f
......@@ -368,13 +368,13 @@ QStringList KoResourcePaths::resourceDirsInternal(const QString &type)
QString KoResourcePaths::saveLocationInternal(const QString &type, const QString &suffix, bool create)
{
QString path = QStandardPaths::writableLocation(d->mapTypeToQStandardPaths(type)) + '/' + suffix;
QString path = QStandardPaths::writableLocation(d->mapTypeToQStandardPaths(type)) + '/' + (suffix.isEmpty() ? "krita" : suffix);
QDir d(path);
if (!d.exists() && create) {
d.mkpath(path);
}
// qDebug() << "saveLocation: type" << type << "suffix" << suffix << "create" << create << "path" << path;
qDebug() << "saveLocation: type" << type << "suffix" << suffix << "create" << create << "path" << path;
return path;
}
......
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