Bug 139422

Summary: Cannot select "Stop after current track" at non-playlist track
Product: [Applications] amarok Reporter: Alexander Surma <alexander.surma>
Component: PlaylistAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.4.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexander Surma 2006-12-31 01:40:30 UTC
Version:           1.4.4 (using KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-5 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-3-k7

I cannot select "Stop after current track", if the track is already playing, but not in the playlist anymore. I think it should be possible.
Comment 1 Alexandre Oliveira 2006-12-31 02:20:34 UTC
SVN commit 618080 by aoliveira:

Show stop after track option even when current track is not on playlist
BUG: 139422


 M  +1 -1      actionclasses.cpp  


--- trunk/extragear/multimedia/amarok/src/actionclasses.cpp #618079:618080
@@ -629,7 +629,7 @@
 
     setItemEnabled( NOW,         Amarok::actionCollection()->action( "stop" )->isEnabled() );
 
-    setItemEnabled( AFTER_TRACK, pl->currentTrackIndex() >= 0 );
+    setItemEnabled( AFTER_TRACK, EngineController::engine()->loaded() );
     setItemChecked( AFTER_TRACK, pl->stopAfterMode() == Playlist::StopAfterCurrent );
 
     setItemEnabled( AFTER_QUEUE, pl->nextTracks().count() );