Commit 0025b74d authored by Boudewijn Rempt's avatar Boudewijn Rempt

BUG:374536 Don't save the default directory for SaveAs file dialogs

The default folder for save as is taken from the path of the image.
parent 7fee5ef2
......@@ -954,7 +954,7 @@ bool KisMainWindow::saveDocument(KisDocument *document, bool saveas)
// don't want to be reminded about overwriting files etc.
bool justChangingFilterOptions = false;
KoFileDialog dialog(this, KoFileDialog::SaveFile, "OpenDocument");
KoFileDialog dialog(this, KoFileDialog::SaveFile, "SaveAs");
if (d->isExporting && !d->lastExportUrl.isEmpty()) {
......@@ -134,7 +134,6 @@ void KoFileDialog::createFileDialog()
d->fileDialog.reset(new QFileDialog(d->parent, d->caption, d->defaultDirectory + "/" + d->proposedFileName));
KConfigGroup group = KSharedConfig::openConfig()->group("File Dialogs");
bool dontUseNative = true;
#ifdef Q_OS_UNIX
if (qgetenv("XDG_CURRENT_DESKTOP") != "KDE") {
......@@ -405,6 +404,7 @@ void KoFileDialog::saveUsedDir(const QString &fileName,
if (dialogName.isEmpty()) return;
if (d->type == SaveFile) return;
QFileInfo fileInfo(fileName);
KConfigGroup group = KSharedConfig::openConfig()->group("File Dialogs");
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