2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix video seeking.

Regression was introduced in d0e854e9d8.

Each time you hide() a widget its mousePress state is reset and
mouseMoveEvent() / mouseReleaseEvent() handlers are never called.

So you can't toggle (hide + show) widgets that are mouse-pressed.

Fixes #4802.
This commit is contained in:
John Preston
2018-06-06 11:56:39 +03:00
parent 4a4544c883
commit 777bf7d8d9
4 changed files with 16 additions and 6 deletions

View File

@@ -2961,9 +2961,6 @@ bool MediaView::eventFilter(QObject *obj, QEvent *e) {
activate = true;
}
if (activate) {
if (_controlsState == ControlsHiding || _controlsState == ControlsHidden) {
int a = 0;
}
activateControls();
}
}