Sophie

Sophie

distrib > Mandriva > 2008.0 > i586 > by-pkgid > cfd4bbfae24305581cf91ef8a7459719 > files > 13

amarok-1.4.7-9mdv2008.0.src.rpm

SVN commit 705231 by mitchell:

Fix issue where immediately after activating a dynamic playlist you couldn't drag a track to the top.

BUG: 149263


 M  +2 -1      src/playlist.cpp

--- amarok/src/playlist.cpp~	2007-08-07 19:48:28.000000000 +0200
+++ amarok/src/playlist.cpp	2007-08-28 13:39:39.000000000 +0200
@@ -2424,7 +2424,8 @@
     //at the beginning or in the middle of the disabled tracks
     //Also, that the dynamic playlist has any tracks (suggested may not)
     if( dynamicMode() && Playlist::instance()->firstChild() &&
-            ( !m_marker || !( static_cast<PlaylistItem *>(m_marker)->isDynamicEnabled() )  ) )
+            ( !m_marker || !( static_cast<PlaylistItem *>(m_marker)->isDynamicEnabled() )  ) &&
+            currentTrackIndex() != -1 )
     {
         // If marker is disabled, and there is a current track, or marker is not the last enabled track
         // don't allow inserting