mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix possible crash in app shutdown.
This commit is contained in:
parent
f94280be7f
commit
d7496f9824
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue