mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-29 01:52:48 +00:00
Crashfix on space/return press in MediaView when viewing a photo.
This commit is contained in:
parent
5b7a17e044
commit
4cc9f1f3b4
@ -1796,7 +1796,7 @@ void MediaView::keyPressEvent(QKeyEvent *e) {
|
||||
} else if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return || e->key() == Qt::Key_Space) {
|
||||
if (_doc && !_doc->loading() && (!fileShown() || !_doc->loaded())) {
|
||||
onDocClick();
|
||||
} else if (_doc->isVideo()) {
|
||||
} else if (_doc && _doc->isVideo()) {
|
||||
onVideoPauseResume();
|
||||
}
|
||||
} else if (e->key() == Qt::Key_Left) {
|
||||
|
Loading…
Reference in New Issue
Block a user