Add braces around single line statements

* Ran clang-tidy with "readability-braces-around-statements" to find missing braces around statements.
This commit is contained in:
Jonathan White
2020-01-07 22:06:31 -05:00
parent c427000184
commit c663b5d5fc
12 changed files with 98 additions and 54 deletions

View File

@@ -155,10 +155,11 @@ void GroupView::syncExpandedState(const QModelIndex& parent, int start, int end)
void GroupView::setCurrentGroup(Group* group)
{
if (group == nullptr)
if (group == nullptr) {
setCurrentIndex(QModelIndex());
else
} else {
setCurrentIndex(m_model->index(group));
}
}
void GroupView::modelReset()