mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in window destruction.
This commit is contained in:
@@ -151,6 +151,7 @@ void MainWindow::firstShow() {
|
||||
void MainWindow::clearWidgetsHook() {
|
||||
Expects(_passcodeLock == nullptr || !Global::LocalPasscode());
|
||||
|
||||
destroyLayer();
|
||||
_main.destroy();
|
||||
_passcodeLock.destroy();
|
||||
_intro.destroy();
|
||||
@@ -207,8 +208,6 @@ void MainWindow::clearPasscodeLock() {
|
||||
}
|
||||
|
||||
void MainWindow::setupIntro() {
|
||||
Ui::hideSettingsAndLayer(anim::type::instant);
|
||||
|
||||
auto animated = (_main || _passcodeLock);
|
||||
auto bg = animated ? grabInner() : QPixmap();
|
||||
|
||||
|
@@ -265,7 +265,6 @@ bool MainWindow::hideNoQuit() {
|
||||
}
|
||||
|
||||
void MainWindow::clearWidgets() {
|
||||
Ui::hideLayer(anim::type::instant);
|
||||
clearWidgetsHook();
|
||||
updateGlobalMenu();
|
||||
}
|
||||
|
Reference in New Issue
Block a user