author | simon <simon> | 2002-12-02 13:48:06 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 13:48:06 (UTC) |
commit | 4a942c5d074cef8a04870cee1ab053f72321fd20 (patch) (side-by-side diff) | |
tree | 135459fe1bd5ada39b9028e70bfc09f6fa6555e5 | |
parent | 58ae980e181b89143760b3893b0f8267cb4489d9 (diff) | |
download | opie-4a942c5d074cef8a04870cee1ab053f72321fd20.zip opie-4a942c5d074cef8a04870cee1ab053f72321fd20.tar.gz opie-4a942c5d074cef8a04870cee1ab053f72321fd20.tar.bz2 |
- two unnecessary if statements removed
-rw-r--r-- | noncore/multimedia/opieplayer2/mediaplayerstate.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp index 4f43465..5e5dfb2 100644 --- a/noncore/multimedia/opieplayer2/mediaplayerstate.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayerstate.cpp @@ -61,76 +61,68 @@ MediaPlayerState::~MediaPlayerState() { void MediaPlayerState::readConfig( Config& cfg ) { cfg.setGroup("Options"); fullscreen = cfg.readBoolEntry( "FullScreen" ); scaled = cfg.readBoolEntry( "Scaling" ); looping = cfg.readBoolEntry( "Looping" ); shuffled = cfg.readBoolEntry( "Shuffle" ); usePlaylist = cfg.readBoolEntry( "UsePlayList" ); videoGamma = cfg.readNumEntry( "VideoGamma" ); usePlaylist = TRUE; playing = FALSE; streaming = FALSE; paused = FALSE; curPosition = 0; curLength = 0; curView = 'l'; } void MediaPlayerState::writeConfig( Config& cfg ) const { cfg.setGroup( "Options" ); cfg.writeEntry( "FullScreen", fullscreen ); cfg.writeEntry( "Scaling", scaled ); cfg.writeEntry( "Looping", looping ); cfg.writeEntry( "Shuffle", shuffled ); cfg.writeEntry( "UsePlayList", usePlaylist ); cfg.writeEntry( "VideoGamma", videoGamma ); } // slots void MediaPlayerState::setIsStreaming( bool b ) { - - if ( streaming == b ) { - return; - } streaming = b; } void MediaPlayerState::setIsSeekable( bool b ) { - - //if ( isSeekable == b ) { - // return; - // } seekable = b; emit isSeekableToggled(b); } void MediaPlayerState::setFullscreen( bool b ) { if ( fullscreen == b ) { return; } fullscreen = b; emit fullscreenToggled(b); } void MediaPlayerState::setBlanked( bool b ) { if ( blanked == b ) { return; } blanked = b; emit blankToggled(b); } void MediaPlayerState::setScaled( bool b ) { if ( scaled == b ) { return; } scaled = b; emit scaledToggled(b); } void MediaPlayerState::setLooping( bool b ) { |