Commit f02c4722 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Make a last-ditch attempt to get a writable swap location

parent 3f7e32c9
......@@ -258,6 +258,14 @@ QString KisImageConfig::safelyGetWritableTempLocation(const QString &suffix, con
if (!configuredSwap.isEmpty()) {
swap = configuredSwap;
}
// Gosh, everything fails, nothing is writable, swap to the homedir
if (!QFileInfo(swap).isWritable()) {
swap = QDir::homePath();
Q_ASSERT(QFileInfo(swap).isWritable());
}
return swap;
}
......
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