From: Dirk H Bartley Date: Tue, 31 Mar 2009 17:04:28 +0000 (+0000) Subject: preferred with brackets X-Git-Tag: Release-7.0.0~3186 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f676f5bd011d09a9d3878e9ea7591e2a15ad5a80;p=bacula%2Fbacula preferred with brackets git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8669 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/restore/restoretree.cpp b/bacula/src/qt-console/restore/restoretree.cpp index 0c2924eb8f..d1a157318f 100644 --- a/bacula/src/qt-console/restore/restoretree.cpp +++ b/bacula/src/qt-console/restore/restoretree.cpp @@ -1202,7 +1202,7 @@ void restoreTree::updateFileTableChecks() int rcnt = fileTable->rowCount(); for (int row=0; rowitem(row, 0); - if (!item) return; + if (!item) { return; } Qt::CheckState curState = item->checkState(); Qt::CheckState newState = Qt::PartiallyChecked; @@ -1244,7 +1244,7 @@ void restoreTree::updateVersionTableChecks() /* deterimine the default state from the state of the file */ QTableWidgetItem *fileTableItem = fileTable->item(fileTable->currentRow(), 0); - if (!fileTableItem) return; + if (!fileTableItem) { return; } Qt::CheckState fileState = fileTableItem->checkState(); QString file = fileTableItem->text(); QString fullPath = dirName + file; @@ -1254,7 +1254,7 @@ void restoreTree::updateVersionTableChecks() int cnt = versionTable->rowCount(); for (int row=0; rowitem(row, 0); - if (!item) break; + if (!item) { break; } Qt::CheckState curState = item->checkState(); Qt::CheckState newState = Qt::Unchecked;