File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ void MainWindow::load_config(QString filename) {
141141 if (child != 0 ) { delete child; }
142142 QStringList taskNames;
143143 if (pt.contains (" SessionBlocks" )) { taskNames = pt.value (" SessionBlocks" ).toStringList (); }
144- hasTasks = taskNames.count () > 0 ;
144+ hasTasks = ! taskNames.empty () ;
145145 if (hasTasks) {
146146 taskBox = new QComboBox ();
147147 taskBox->addItems (taskNames);
@@ -353,10 +353,10 @@ void MainWindow::buildFilename() {
353353
354354 // Fill root folder with default if needed.
355355 if (ui->rootEdit ->text ().isEmpty ()) {
356- QStringList fileparts =
357- QStringList (QStandardPaths::writableLocation (QStandardPaths::DocumentsLocation))
358- << " CurrentStudy" ;
359- ui->rootEdit ->setText (QDir::toNativeSeparators (fileparts.join (QDir::separator ())));
356+ QStringList fileparts =
357+ QStringList (QStandardPaths::writableLocation (QStandardPaths::DocumentsLocation))
358+ << " CurrentStudy" ;
359+ ui->rootEdit ->setText (QDir::toNativeSeparators (fileparts.join (QDir::separator ())));
360360 }
361361
362362 // Build the file location in parts, starting with the root folder.
You can’t perform that action at this time.
0 commit comments