mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00: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