mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user