From 673f35da4c96122fda0f69514bce1fced1ca6b4e Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 24 Nov 2024 17:21:35 +1000 Subject: Fix mouse events not changing volume Using the scroll wheel over the volume slider would not change the volume, neither would dragging the slider (until released) or clicking on the slider. This patch fixes the above. See: TDE/codeine#5 Signed-off-by: mio (cherry picked from commit 14b52b5a467e1c5be5ecc9d54c252d787294df3c) --- src/app/stateChange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app/stateChange.cpp') diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp index 9322a13..49adc55 100644 --- a/src/app/stateChange.cpp +++ b/src/app/stateChange.cpp @@ -63,7 +63,7 @@ MainWindow::engineStateChanged( Engine::State state ) toggleAction( "play" )->setChecked( state == Playing ); //FIXME bad design to do this way - m_volumeAction->sliderMoved( engine()->volume() ); + m_volumeAction->setVolume(engine()->volume()); } -- cgit v1.2.3