mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 17:21:27 -05:00
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:
parent
8129d0c5d4
commit
f9439f2bac
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user