2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

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

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) {
if (!Core::App().hideMediaView()) {
handleHistoryBack();
}
return true;
}
} else if (e->type() == QEvent::Wheel) {