Fix crash in history switch.
Don't call anything heavy between changing _history and _list.
This commit is contained in:
parent
f5a405e6f1
commit
9fd8b040b7
|
@ -1970,7 +1970,6 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
||||||
|
|
||||||
_history = App::history(_peer->id);
|
_history = App::history(_peer->id);
|
||||||
_migrated = _peer->migrateFrom() ? App::history(_peer->migrateFrom()->id) : 0;
|
_migrated = _peer->migrateFrom() ? App::history(_peer->migrateFrom()->id) : 0;
|
||||||
updateForwarding();
|
|
||||||
|
|
||||||
if (_channel) {
|
if (_channel) {
|
||||||
updateNotifySettings();
|
updateNotifySettings();
|
||||||
|
@ -2031,7 +2030,7 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
||||||
clearFieldText();
|
clearFieldText();
|
||||||
doneShow();
|
doneShow();
|
||||||
}
|
}
|
||||||
|
updateForwarding();
|
||||||
updateOverStates(mapFromGlobal(QCursor::pos()));
|
updateOverStates(mapFromGlobal(QCursor::pos()));
|
||||||
|
|
||||||
if (App::wnd()) QTimer::singleShot(0, App::wnd(), SLOT(setInnerFocus()));
|
if (App::wnd()) QTimer::singleShot(0, App::wnd(), SLOT(setInnerFocus()));
|
||||||
|
|
Loading…
Reference in New Issue