aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 1f131402e..104dfee04 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1433,7 +1433,10 @@ int MainWindow::file_save_as(void)
selection_dialog.setAcceptMode(QFileDialog::AcceptSave);
selection_dialog.setFileMode(QFileDialog::AnyFile);
selection_dialog.setDefaultSuffix("");
-
+ if (same_string(default_filename, "")) {
+ QFileInfo defaultFile(system_default_filename());
+ selection_dialog.setDirectory(qPrintable(defaultFile.absolutePath()));
+ }
/* if the exit/cancel button is pressed return */
if (!selection_dialog.exec())
return 0;