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

refactor(contentdialog): Refactor window activate event

This commit is contained in:
Diadlo 2016-05-04 02:36:19 +03:00
parent e3d74117ca
commit 378d648591
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -484,18 +484,18 @@ bool ContentDialog::event(QEvent* event)
updateTitle(activeChatroomWidget);
Friend* frnd = activeChatroomWidget->getFriend();
Group* group = activeChatroomWidget->getGroup();
GenericChatroomWidget *widget = nullptr;
if (frnd)
{
frnd->getFriendWidget()->resetEventFlags();
frnd->getFriendWidget()->updateStatusLight();
}
widget = frnd->getFriendWidget();
else
{
Group* g = activeChatroomWidget->getGroup();
g->getGroupWidget()->resetEventFlags();
g->getGroupWidget()->updateStatusLight();
}
widget = group->getGroupWidget();
widget->resetEventFlags();
widget->updateStatusLight();
Widget::getInstance()->resetIcon();
}