[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Seb Ruiz <me () sebruiz ! net>
Date:       2005-07-30 4:15:40
Message-ID: 1122696940.422034.4993.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 440316 by seb:

entire should clear state for all items, as expected.


 M  +6 -4      playlist.cpp  


--- trunk/extragear/multimedia/amarok/src/playlist.cpp #440315:440316
@@ -697,10 +697,12 @@
     for( MyIterator it( this, MyIterator::All ) ; *it ; ++it )
     {
         if( !entire )
-            if( *it == m_currentTrack ) break;
+        {
+            if( *it == m_currentTrack )  break;
+            if( !enable )
+                if( (*it)->isEnabled() ) break;
+        }
 
-        if( !enable )
-            if( (*it)->isEnabled() ) break;
         //avoid repainting if we can.
         if( (*it)->isEnabled() != enable )
         {
@@ -1968,7 +1970,7 @@
         //re-disable history items
         if( isDynamic() ) {
             if( m_stateSwitched ) {
-                alterHistoryItems( false, true ); // if resume on start is disabled, \
m_currentTrack == 0; +                alterHistoryItems( false );
                 m_stateSwitched = false;
             }
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic