From b691cf9bed2a78d5606eef9845530660a322a2a9 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Mon, 17 Apr 2017 23:37:10 +0300 Subject: [PATCH] refactor: Add parentheses around the '&&' expression --- src/widget/contentdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget/contentdialog.cpp b/src/widget/contentdialog.cpp index b290c582d..65423d6dd 100644 --- a/src/widget/contentdialog.cpp +++ b/src/widget/contentdialog.cpp @@ -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) {