Mercurial > retraceit
comparison src/mainwindow.cpp @ 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 | 26e1521b9afd |
children | 73e6b6b12412 |
comparison
equal
deleted
inserted
replaced
41:ae8e859de68e | 42:2836b6ed430a |
---|---|
183 } | 183 } |
184 | 184 |
185 void MainWindow::showSubFolderSelect() { | 185 void MainWindow::showSubFolderSelect() { |
186 const QString subPattern = mSettings.value(SUB_FOLDER_PATTERN_KEY, | 186 const QString subPattern = mSettings.value(SUB_FOLDER_PATTERN_KEY, |
187 SUB_FOLDER_PATTERN).toString(); | 187 SUB_FOLDER_PATTERN).toString(); |
188 mSettings.setValue(SUB_FOLDER_PATTERN_KEY, subPattern); | |
188 FolderSelectDialog *fsDialog = new FolderSelectDialog(mRootFolder, | 189 FolderSelectDialog *fsDialog = new FolderSelectDialog(mRootFolder, |
189 subPattern); | 190 subPattern); |
190 fsDialog->setWindowTitle(tr("Persons")); | 191 fsDialog->setWindowTitle(tr("Persons")); |
191 connect(fsDialog, &FolderSelectDialog::folderSelected, | 192 connect(fsDialog, &FolderSelectDialog::folderSelected, |
192 this, &MainWindow::setFolder); | 193 this, &MainWindow::setFolder); |
198 void MainWindow::showWithFolderSelect() { | 199 void MainWindow::showWithFolderSelect() { |
199 const QString startFolder = mSettings.value(ROOT_FOLDER_KEY, | 200 const QString startFolder = mSettings.value(ROOT_FOLDER_KEY, |
200 QString()).toString(); | 201 QString()).toString(); |
201 const QString rootPattern = mSettings.value(ROOT_FOLDER_PATTERN_KEY, | 202 const QString rootPattern = mSettings.value(ROOT_FOLDER_PATTERN_KEY, |
202 DEFAULT_ROOT_PATTERN).toString(); | 203 DEFAULT_ROOT_PATTERN).toString(); |
204 mSettings.setValue(ROOT_FOLDER_PATTERN_KEY, rootPattern); | |
203 FolderSelectDialog *fsDialog = new FolderSelectDialog(startFolder, | 205 FolderSelectDialog *fsDialog = new FolderSelectDialog(startFolder, |
204 rootPattern, | 206 rootPattern, |
205 tr("Root-Path")); | 207 tr("Root-Path")); |
206 fsDialog->setWindowTitle(tr("Exams")); | 208 fsDialog->setWindowTitle(tr("Exams")); |
207 connect(fsDialog, &FolderSelectDialog::folderSelected, | 209 connect(fsDialog, &FolderSelectDialog::folderSelected, |