mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 21:06:58 +01:00
Fix track slider popup being stuck
This commit is contained in:
parent
93f33615ad
commit
e90a36da79
@ -129,9 +129,7 @@ void TrackSliderSlider::enterEvent(QEvent* e) {
|
||||
void TrackSliderSlider::leaveEvent(QEvent* e) {
|
||||
QSlider::leaveEvent(e);
|
||||
#ifndef Q_OS_MACOS
|
||||
// On some (but not all) systems, displaying the TrackSliderPopup
|
||||
// generates a leaveEvent. Ensure that this leaveEvent is genuine.
|
||||
if (!geometry().contains(mapFromGlobal(QCursor::pos()))) {
|
||||
if (popup_->isVisible()) {
|
||||
popup_->hide();
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user