Browse Source

refactor(contentdialog): Refactor window activate event

pull/3249/head
Diadlo 9 years ago
parent
commit
378d648591
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 18
      src/widget/contentdialog.cpp

18
src/widget/contentdialog.cpp

@ -484,18 +484,18 @@ bool ContentDialog::event(QEvent* event) @@ -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();
}

Loading…
Cancel
Save