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

chore(warning): Fix compile warnings

- change preprocessor warning on runtime qWarning
- add parentheses around ‘&&’ within ‘||’
This commit is contained in:
Diadlo 2017-03-21 22:48:52 +03:00
parent 5b120c18ef
commit 026517dc5a
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -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;