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

fix(widget, contentdialog): Added reset icon after activate chat window

Fix #3139.
This commit is contained in:
Diadlo 2016-04-23 02:13:00 +03:00
parent f2b8b10cc9
commit 4edc5996c7
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
3 changed files with 11 additions and 5 deletions

View File

@ -496,6 +496,7 @@ bool ContentDialog::event(QEvent* event)
g->getGroupWidget()->resetEventFlags();
g->getGroupWidget()->updateStatusLight();
}
Widget::getInstance()->resetIcon();
}
currentDialog = this;

View File

@ -1670,6 +1670,12 @@ void Widget::onEmptyGroupCreated(int groupId)
group->getGroupWidget()->editName();
}
void Widget::resetIcon() {
eventIcon = false;
eventFlag = false;
updateIcons();
}
bool Widget::event(QEvent * e)
{
switch (e->type())
@ -1687,11 +1693,7 @@ bool Widget::event(QEvent * e)
}
if (eventFlag)
{
eventFlag = false;
eventIcon = false;
updateIcons();
}
resetIcon();
focusChatInput();

View File

@ -105,6 +105,9 @@ public:
void searchItem(GenericChatItemWidget* chatItem, GenericChatItemWidget::ItemType type);
bool groupsVisible() const;
// Used to reset the blinking icon
void resetIcon();
public slots:
void onSettingsClicked();
void onSeparateWindowClicked(bool separate);