mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix possible crash in app shutdown.
This commit is contained in:
@@ -1449,7 +1449,7 @@ void HistoryWidget::activate() {
|
|||||||
updateHistoryGeometry();
|
updateHistoryGeometry();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (App::wnd()) App::wnd()->setInnerFocus();
|
controller()->widget()->setInnerFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWidget::setInnerFocus() {
|
void HistoryWidget::setInnerFocus() {
|
||||||
@@ -3347,7 +3347,7 @@ void HistoryWidget::doneShow() {
|
|||||||
_groupCallBar->finishAnimating();
|
_groupCallBar->finishAnimating();
|
||||||
}
|
}
|
||||||
checkHistoryActivation();
|
checkHistoryActivation();
|
||||||
App::wnd()->setInnerFocus();
|
controller()->widget()->setInnerFocus();
|
||||||
_preserveScrollTop = false;
|
_preserveScrollTop = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user