Fixed media overlay closing with Back mouse button.

- Fixed #2998.
This commit is contained in:
23rd 2019-06-30 16:21:53 +03:00 committed by John Preston
parent 5e233dab47
commit 1963fca7d3
1 changed files with 3 additions and 1 deletions

View File

@ -2706,7 +2706,9 @@ bool MainWidget::eventFilter(QObject *o, QEvent *e) {
}
} else if (e->type() == QEvent::MouseButtonPress) {
if (static_cast<QMouseEvent*>(e)->button() == Qt::BackButton) {
handleHistoryBack();
if (!Core::App().hideMediaView()) {
handleHistoryBack();
}
return true;
}
} else if (e->type() == QEvent::Wheel) {