Fix possible crash in PiP drag.

This commit is contained in:
John Preston 2020-07-03 07:45:08 +04:00
parent 3822845f86
commit 326574ab7e

View file

@ -598,6 +598,7 @@ void PipPanel::mousePressEvent(QMouseEvent *e) {
if (e->button() != Qt::LeftButton) { if (e->button() != Qt::LeftButton) {
return; return;
} }
updateOverState(e->pos());
_pressState = _overState; _pressState = _overState;
_pressPoint = e->globalPos(); _pressPoint = e->globalPos();
} }