Crashfix on space/return press in MediaView when viewing a photo.

This commit is contained in:
John Preston 2016-07-24 10:21:52 +03:00
parent 5b7a17e044
commit 4cc9f1f3b4

View File

@ -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) {