mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Crashfix on space/return press in MediaView when viewing a photo.
This commit is contained in:
parent
5b7a17e044
commit
4cc9f1f3b4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
} else if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return || e->key() == Qt::Key_Space) {
|
||||||
if (_doc && !_doc->loading() && (!fileShown() || !_doc->loaded())) {
|
if (_doc && !_doc->loading() && (!fileShown() || !_doc->loaded())) {
|
||||||
onDocClick();
|
onDocClick();
|
||||||
} else if (_doc->isVideo()) {
|
} else if (_doc && _doc->isVideo()) {
|
||||||
onVideoPauseResume();
|
onVideoPauseResume();
|
||||||
}
|
}
|
||||||
} else if (e->key() == Qt::Key_Left) {
|
} else if (e->key() == Qt::Key_Left) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue