2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix crash in MainWidget setup with audio player.

This commit is contained in:
John Preston
2020-06-30 19:05:12 +04:00
parent 3c028590b1
commit 7d0eb3ba8e
4 changed files with 22 additions and 7 deletions

View File

@@ -612,6 +612,8 @@ void MainWidget::clearHider(not_null<Window::HistoryHider*> instance) {
return;
}
_hider.release();
controller()->setSelectingPeer(false);
if (Adaptive::OneColumn()) {
if (_mainSection || (_history->peer() && _history->peer()->id)) {
auto animationParams = ([=] {
@@ -637,6 +639,8 @@ void MainWidget::hiderLayer(base::unique_qptr<Window::HistoryHider> hider) {
}
_hider = std::move(hider);
controller()->setSelectingPeer(true);
_hider->setParent(this);
_hider->hidden(
@@ -1407,6 +1411,7 @@ void MainWidget::ui_showPeerHistory(
if (_hider) {
_hider->startHide();
_hider.release();
controller()->setSelectingPeer(false);
}
auto animatedShow = [&] {