comparison src/folderselectdialog.cpp @ 61:de148cd023a1

Do not print errors if the folder is not set.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 19 May 2015 16:14:20 +0200
parents 07744e276579
children ca8d3cfe8ba1
comparison
equal deleted inserted replaced
60:af8f1792d48d 61:de148cd023a1
138 /* assuming go is only available in root folder mode */ 138 /* assuming go is only available in root folder mode */
139 settings.setValue(ROOT_FOLDER_KEY, mPathLineEdit->text()); 139 settings.setValue(ROOT_FOLDER_KEY, mPathLineEdit->text());
140 } 140 }
141 141
142 void FolderSelectDialog::setFolder(const QString& folder) { 142 void FolderSelectDialog::setFolder(const QString& folder) {
143 if (folder.isEmpty()) {
144 return;
145 }
143 mCurFolder = folder; 146 mCurFolder = folder;
144 if (mPathLineEdit) { 147 if (mPathLineEdit) {
145 mPathLineEdit->setText(mCurFolder); 148 mPathLineEdit->setText(mCurFolder);
146 } 149 }
147 150
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)