2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Handle the outdated app error in passport.

This commit is contained in:
John Preston
2018-07-10 23:15:54 +03:00
parent 7be9e0fb94
commit 39b0d9e46f
8 changed files with 34 additions and 4 deletions

View File

@@ -223,7 +223,9 @@ void SeparatePanel::finishAnimating() {
_animationCache = QPixmap();
if (_visible) {
showControls();
_inner->setFocus();
if (_inner) {
_inner->setFocus();
}
} else {
finishClose();
}
@@ -317,7 +319,7 @@ void SeparatePanel::focusInEvent(QFocusEvent *e) {
crl::on_main(this, [=] {
if (_layer) {
_layer->setInnerFocus();
} else if (!_inner->isHidden()) {
} else if (_inner && !_inner->isHidden()) {
_inner->setFocus();
}
});