2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix crash on quit from passcode with a box.

This commit is contained in:
John Preston
2019-09-09 18:54:38 +03:00
parent 423254f7eb
commit f90fdce422
3 changed files with 17 additions and 9 deletions

View File

@@ -172,7 +172,7 @@ QPixmap MainWindow::grabInner() {
void MainWindow::setupPasscodeLock() {
auto animated = (_main || _intro);
auto bg = animated ? grabInner() : QPixmap();
_passcodeLock.create(bodyWidget());
_passcodeLock.create(bodyWidget(), &controller());
updateControlsGeometry();
Core::App().hideMediaView();