From 026517dc5a84aa2aa4ca007ed9c0aa7e82641447 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Tue, 21 Mar 2017 22:48:52 +0300 Subject: [PATCH] chore(warning): Fix compile warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - change preprocessor warning on runtime qWarning - add parentheses around ‘&&’ within ‘||’ --- src/widget/contentdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/contentdialog.cpp b/src/widget/contentdialog.cpp index fc6ed76b6..b54e3856c 100644 --- a/src/widget/contentdialog.cpp +++ b/src/widget/contentdialog.cpp @@ -345,7 +345,7 @@ void ContentDialog::cycleContacts(bool forward, bool inverse) bool isCurGroup = currentLayout == groupLayout.getLayout(); bool nextIsEmpty = (isCurOnline && offlineEmpty && (groupsEmpty || groupsOnTop)) || (isCurGroup && offlineEmpty && (onlineEmpty || !groupsOnTop)) - || isCurOffline; + || (isCurOffline); if (nextIsEmpty) { forward = !forward;