[Amarok] 35d15c4 Revert "Make playlist insert with AppendAndPlay no

Mark Kretschmann kretschmann at kde.org
Fri Jan 7 12:49:20 CET 2011


commit 35d15c4e4d8d3fcfa5c3c6aeece7aa8b343594d6
branch master
Author: Mark Kretschmann <kretschmann at kde.org>
Date:   Fri Jan 7 12:46:21 2011 +0100

    Revert "Make playlist insert with AppendAndPlay not play if playback is paused"
    
    This reverts commit ca006c64924daec41e0de444247402ddedcf0f5c.
    
    As dicussed on the amarok-devel ML, this change has far too major side
    effects. If it really is needed, it should be special-cased for Dynamic
    Playlists only.
    
    CCMAIL: amarok-devel at kde.org

diff --git a/src/playlist/PlaylistController.cpp b/src/playlist/PlaylistController.cpp
index 41fcebe..d6c78a1 100644
--- a/src/playlist/PlaylistController.cpp
+++ b/src/playlist/PlaylistController.cpp
@@ -146,15 +146,11 @@ Playlist::Controller::insertOptioned( Meta::TrackList list, int options )
     bool playNow = false;
     if( options & DirectPlay )
         playNow = true;
-
     if( options & StartPlay )
-    {
-        if( !The::engineController()->isPlaying() && !The::engineController()->isPaused() )
+        if( !The::engineController()->isPlaying() )
             playNow = true;
-    }
 
-    if( playNow )
-    {
+    if ( playNow ) {
         if ( AmarokConfig::trackProgression() == AmarokConfig::EnumTrackProgression::RandomTrack ||
              AmarokConfig::trackProgression() == AmarokConfig::EnumTrackProgression::RandomAlbum )
             Actions::instance()->play();


More information about the Amarok-devel mailing list