mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-28 19:40:54 +00:00
Fix possible crash in app shutdown.
This commit is contained in:
parent
f94280be7f
commit
d7496f9824
@ -1449,7 +1449,7 @@ void HistoryWidget::activate() {
|
||||
updateHistoryGeometry();
|
||||
}
|
||||
}
|
||||
if (App::wnd()) App::wnd()->setInnerFocus();
|
||||
controller()->widget()->setInnerFocus();
|
||||
}
|
||||
|
||||
void HistoryWidget::setInnerFocus() {
|
||||
@ -3347,7 +3347,7 @@ void HistoryWidget::doneShow() {
|
||||
_groupCallBar->finishAnimating();
|
||||
}
|
||||
checkHistoryActivation();
|
||||
App::wnd()->setInnerFocus();
|
||||
controller()->widget()->setInnerFocus();
|
||||
_preserveScrollTop = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user