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

List:       kde-commits
Subject:    kdeextragear-1/amarok/src
From:       Mark Kretschmann <markey () web ! de>
Date:       2005-02-07 12:57:56
Message-ID: 20050207125756.671711D040 () office ! kde ! org
[Download RAW message or body]

CVS commit by markey: 

Disable "clear_playlist" icon if the playlist is empty.


  M +2 -1      playlist.cpp   1.411


--- kdeextragear-1/amarok/src/playlist.cpp  #1.410:1.411
@@ -716,4 +716,5 @@ Playlist::updateNextPrev()
     amaroK::actionCollection()->action( "prev" )->setEnabled( isTrackBefore() );
     amaroK::actionCollection()->action( "next" )->setEnabled( isTrackAfter() );
+    amaroK::actionCollection()->action( "playlist_clear" )->setEnabled( !isEmpty() );
 }
 
@@ -853,4 +853,5 @@ Playlist::clear() //SLOT
 
     emit itemCountChanged( childCount(), m_totalLength, 0, 0 );
+    updateNextPrev();
 }
 


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

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