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
This commit is contained in:
csoler 2015-01-05 20:00:32 +00:00
parent 8129d0c5d4
commit f9439f2bac

View File

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