mirror of https://github.com/procxx/kepka.git
Fix crash in window destruction.
This commit is contained in:
parent
149c69809d
commit
9e3bc966c8
|
@ -151,6 +151,7 @@ void MainWindow::firstShow() {
|
||||||
void MainWindow::clearWidgetsHook() {
|
void MainWindow::clearWidgetsHook() {
|
||||||
Expects(_passcodeLock == nullptr || !Global::LocalPasscode());
|
Expects(_passcodeLock == nullptr || !Global::LocalPasscode());
|
||||||
|
|
||||||
|
destroyLayer();
|
||||||
_main.destroy();
|
_main.destroy();
|
||||||
_passcodeLock.destroy();
|
_passcodeLock.destroy();
|
||||||
_intro.destroy();
|
_intro.destroy();
|
||||||
|
@ -207,8 +208,6 @@ void MainWindow::clearPasscodeLock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::setupIntro() {
|
void MainWindow::setupIntro() {
|
||||||
Ui::hideSettingsAndLayer(anim::type::instant);
|
|
||||||
|
|
||||||
auto animated = (_main || _passcodeLock);
|
auto animated = (_main || _passcodeLock);
|
||||||
auto bg = animated ? grabInner() : QPixmap();
|
auto bg = animated ? grabInner() : QPixmap();
|
||||||
|
|
||||||
|
|
|
@ -265,7 +265,6 @@ bool MainWindow::hideNoQuit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::clearWidgets() {
|
void MainWindow::clearWidgets() {
|
||||||
Ui::hideLayer(anim::type::instant);
|
|
||||||
clearWidgetsHook();
|
clearWidgetsHook();
|
||||||
updateGlobalMenu();
|
updateGlobalMenu();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue