changeset 42:2836b6ed430a

Write out the Folder patterns even if they are unchanged
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 May 2015 18:18:48 +0200
parents ae8e859de68e
children ee696abaab99
files src/mainwindow.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mainwindow.cpp	Wed May 06 18:18:26 2015 +0200
+++ b/src/mainwindow.cpp	Wed May 06 18:18:48 2015 +0200
@@ -185,6 +185,7 @@
 void MainWindow::showSubFolderSelect() {
     const QString subPattern = mSettings.value(SUB_FOLDER_PATTERN_KEY,
                                                SUB_FOLDER_PATTERN).toString();
+    mSettings.setValue(SUB_FOLDER_PATTERN_KEY, subPattern);
     FolderSelectDialog *fsDialog = new FolderSelectDialog(mRootFolder,
                                                           subPattern);
     fsDialog->setWindowTitle(tr("Persons"));
@@ -200,6 +201,7 @@
                                                 QString()).toString();
     const QString rootPattern = mSettings.value(ROOT_FOLDER_PATTERN_KEY,
                                                 DEFAULT_ROOT_PATTERN).toString();
+    mSettings.setValue(ROOT_FOLDER_PATTERN_KEY, rootPattern);
     FolderSelectDialog *fsDialog = new FolderSelectDialog(startFolder,
                                                           rootPattern,
                                                           tr("Root-Path"));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)