mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Crashfix on space/return press in MediaView when viewing a photo.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user