VolumeSlider: Fix infinite loop when adjusting volume using mouse wheel

Fixes #1089
This commit is contained in:
Jonas Kvinge
2023-01-01 17:46:26 +01:00
parent f353c022f6
commit 25323b4a3a
2 changed files with 11 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ class SliderSlider : public QSlider {
virtual void slideEvent(QMouseEvent*);
bool sliding_;
bool wheeling_;
/// we flip the value for vertical sliders
int adjustValue(int v) const {