]> https://gitweb.dealii.org/ - parameter_gui.git/commitdiff
Prepopulate save file dialog 16/head
authorRene Gassmoeller <rene.gassmoeller@mailbox.org>
Sat, 20 May 2017 02:16:07 +0000 (22:16 -0400)
committerRene Gassmoeller <rene.gassmoeller@mailbox.org>
Sat, 20 May 2017 02:35:04 +0000 (22:35 -0400)
mainwindow.cpp

index 40b79e7650640983b52501b8fbde0ed62c010f04..0001e9de1bd96bcf93019e423f2af4aa8ff50744 100644 (file)
@@ -180,7 +180,7 @@ namespace dealii
       // open a file dialog
       QString  file_name =
                  QFileDialog::getSaveFileName(this, tr("Save Parameter File"),
-                                              QDir::currentPath(),
+                                              QDir::currentPath() + QDir::separator() + current_file,
                                               tr("XML Files (*.xml);;PRM Files (*.prm)"));
 
       // return if a file was saved

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.