Browse Source

refactor: Add parentheses around the '&&' expression

reviewable/pr4338/r1
Diadlo 8 years ago
parent
commit
b691cf9bed
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 4
      src/widget/contentdialog.cpp

4
src/widget/contentdialog.cpp

@ -352,8 +352,8 @@ void ContentDialog::cycleContacts(bool forward, bool inverse) @@ -352,8 +352,8 @@ void ContentDialog::cycleContacts(bool forward, bool inverse)
bool isCurOffline = currentLayout == friendLayout->getLayoutOffline();
bool isCurOnline = currentLayout == friendLayout->getLayoutOnline();
bool isCurGroup = currentLayout == groupLayout.getLayout();
bool nextIsEmpty = isCurOnline && offlineEmpty && (groupsEmpty || groupsOnTop) ||
isCurGroup && offlineEmpty && (onlineEmpty || !groupsOnTop) ||
bool nextIsEmpty = (isCurOnline && offlineEmpty && (groupsEmpty || groupsOnTop)) ||
(isCurGroup && offlineEmpty && (onlineEmpty || !groupsOnTop)) ||
isCurOffline;
if (nextIsEmpty) {

Loading…
Cancel
Save