Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(contentdialog, widget): Remove "new message" bar after reading me…
Browse files Browse the repository at this point in the history
…ssage

Fix #2247.
  • Loading branch information
Diadlo committed May 14, 2016
1 parent 378d648 commit b2c1f46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/contentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ bool ContentDialog::event(QEvent* event)
widget->resetEventFlags();
widget->updateStatusLight();

Widget::getInstance()->updateScroll(widget);
Widget::getInstance()->resetIcon();
}

Expand Down
8 changes: 8 additions & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,11 @@ void Widget::clearContactsList()
removeGroup(g, true);
}

void Widget::updateScroll(GenericChatroomWidget *widget) {
ui->friendList->updateTracking(widget);
}


ContentDialog* Widget::createContentDialog() const
{
ContentDialog* contentDialog = new ContentDialog(settingsWidget);
Expand Down Expand Up @@ -1683,6 +1688,9 @@ bool Widget::event(QEvent * e)
case QEvent::MouseButtonDblClick:
focusChatInput();
break;
case QEvent::Paint:
ui->friendList->updateVisualTracking();
break;
case QEvent::WindowActivate:
if (activeChatroomWidget != nullptr)
{
Expand Down
1 change: 1 addition & 0 deletions src/widget/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class Widget final : public QMainWindow
bool getIsWindowMinimized();
void updateIcons();
void clearContactsList();
void updateScroll(GenericChatroomWidget *widget);

enum DialogType
{
Expand Down

0 comments on commit b2c1f46

Please sign in to comment.