Bug 139422 - Cannot select "Stop after current track" at non-playlist track
Summary: Cannot select "Stop after current track" at non-playlist track
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 1.4.4
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-31 01:40 UTC by Alexander Surma
Modified: 2006-12-31 02:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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() );