1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Add parentheses around the '&&' expression

This commit is contained in:
Diadlo 2017-04-17 23:37:10 +03:00
parent c417071ee8
commit b691cf9bed
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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) {