Fix crash in HistoryWidget::mousePressEvent.

When the mouse was over edit / reply and the history was closed,
mouse click handler still tried to jump to the message. Now we
update the mouse over state each time the history changes.
This commit is contained in:
John Preston
2017-05-11 19:11:08 +03:00
parent 0557eeddbd
commit 8bb4d31409
+2
View File
@@ -1826,6 +1826,8 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
doneShow();
}
updateOverStates(mapFromGlobal(QCursor::pos()));
if (App::wnd()) QTimer::singleShot(0, App::wnd(), SLOT(setInnerFocus()));
App::main()->dlgUpdated(wasHistory ? wasHistory->peer : nullptr, wasMsgId);