diff options
Diffstat (limited to 'src/app/stateChange.cpp')
-rw-r--r-- | src/app/stateChange.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp index db07231..e0450d3 100644 --- a/src/app/stateChange.cpp +++ b/src/app/stateChange.cpp @@ -16,6 +16,7 @@ #include "theStream.h" #include "videoSettings.h" //FIXME unfortunate #include "xineEngine.h" +#include "volumeAction.h" //TODO do in Sconstruct @@ -62,9 +63,7 @@ MainWindow::engineStateChanged( Engine::State state ) toggleAction( "play" )->setChecked( state == Playing ); //FIXME bad design to do this way - TQSlider *volume = (TQSlider*)toolBar()->child( "volume" ); - if (volume) - volume->setValue( engine()->volume() ); + m_volumeAction->sliderMoved( engine()->volume() ); } |