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

fixed null dereference

This commit is contained in:
krepa098 2014-08-18 17:35:43 +02:00
parent 01c3124722
commit 75f15dd349

View File

@ -616,7 +616,7 @@ void Widget::onGroupMessageReceived(int groupnumber, int friendgroupnumber, cons
g->chatForm->addGroupMessage(message, friendgroupnumber); g->chatForm->addGroupMessage(message, friendgroupnumber);
if ((isGroupWidgetActive != 1 || (g->groupId != activeGroupWidget->groupId)) || isWindowMinimized || !isActiveWindow()) if ((isGroupWidgetActive != 1 || (activeGroupWidget && g->groupId != activeGroupWidget->groupId)) || isWindowMinimized || !isActiveWindow())
{ {
if (message.contains(core->getUsername(), Qt::CaseInsensitive)) if (message.contains(core->getUsername(), Qt::CaseInsensitive))
{ {