Commit 307e910e authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Make sure the suggested save directory doesn't contain the temp folder.

This shouldn't prevent the odd person who likes saving to this folder,
while ensuring people who just opened up autosaves and have no idea how
file systems work are not suggested to save to the temp folder.
parent 68fe323b
......@@ -1162,7 +1162,7 @@ bool KisMainWindow::saveDocument(KisDocument *document, bool saveas, bool isExpo
//qDebug() << ">>>>>" << isExporting << d->lastExportLocation << d->lastExportedFormat << QString::fromLatin1(document->mimeType());
if (isExporting && !d->lastExportLocation.isEmpty()) {
if (isExporting && !d->lastExportLocation.isEmpty() && !d->lastExportLocation.contains(QDir::tempPath())) {
// Use the location where we last exported to, if it's set, as the opening location for the file dialog
QString proposedPath = QFileInfo(d->lastExportLocation).absolutePath();
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