From f9439f2bacd5633e2572058560f01a000f3550a0 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 5 Jan 2015 20:00:32 +0000 Subject: [PATCH] Typo found by cppcheck (thx to G10H4ck) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7822 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/ChatLobbyWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/ChatLobbyWidget.cpp b/retroshare-gui/src/gui/ChatLobbyWidget.cpp index bf7f8d304..c84972211 100644 --- a/retroshare-gui/src/gui/ChatLobbyWidget.cpp +++ b/retroshare-gui/src/gui/ChatLobbyWidget.cpp @@ -584,7 +584,7 @@ void ChatLobbyWidget::showLobby(QTreeWidgetItem *item) static void subscribeLobby(QTreeWidgetItem *item) { - if (item == NULL && item->type() != TYPE_LOBBY) { + if (item == NULL || item->type() != TYPE_LOBBY) { return; } @@ -596,7 +596,7 @@ static void subscribeLobby(QTreeWidgetItem *item) void ChatLobbyWidget::autoSubscribeLobby(QTreeWidgetItem *item) { - if (item == NULL && item->type() != TYPE_LOBBY) { + if (item == NULL || item->type() != TYPE_LOBBY) { return; } @@ -727,7 +727,7 @@ void ChatLobbyWidget::resetLobbyTreeIcons() void ChatLobbyWidget::unsubscribeItem() { QTreeWidgetItem *item = ui.lobbyTreeWidget->currentItem(); - if (item == NULL && item->type() != TYPE_LOBBY) { + if (item == NULL || item->type() != TYPE_LOBBY) { return; }