Diffstat (limited to 'noncore/multimedia/opieplayer2/mediawidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 01a7295..2992fd6 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp | |||
@@ -35,12 +35,17 @@ MediaWidget::MediaWidget( MediaPlayerState &_mediaPlayerState, QWidget *parent, | |||
35 | } | 35 | } |
36 | 36 | ||
37 | MediaWidget::~MediaWidget() | 37 | MediaWidget::~MediaWidget() |
38 | { | 38 | { |
39 | } | 39 | } |
40 | 40 | ||
41 | void MediaWidget::closeEvent( QCloseEvent * ) | ||
42 | { | ||
43 | mediaPlayerState.setList(); | ||
44 | } | ||
45 | |||
41 | void MediaWidget::handleCommand( Command command, bool buttonDown ) | 46 | void MediaWidget::handleCommand( Command command, bool buttonDown ) |
42 | { | 47 | { |
43 | switch ( command ) { | 48 | switch ( command ) { |
44 | case Play: mediaPlayerState.togglePaused(); | 49 | case Play: mediaPlayerState.togglePaused(); |
45 | case Stop: mediaPlayerState.setPlaying(FALSE); return; | 50 | case Stop: mediaPlayerState.setPlaying(FALSE); return; |
46 | case Next: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; | 51 | case Next: if( playList->currentTab() == PlayListWidget::CurrentPlayList ) mediaPlayerState.setNext(); return; |