mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +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:
parent
0557eeddbd
commit
8bb4d31409
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue