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

List:       kde-commits
Subject:    kdeaddons/noatun-plugins/hayes
From:       Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date:       2003-06-20 11:13:57
[Download RAW message or body]

CVS commit by pfeiffer: 

don't crash when current item is deleted
CCMAIL: 50935-close@bugs.kde.org


  M +3 -1      playlist.cpp   1.61


--- kdeaddons/noatun-plugins/hayes/playlist.cpp  #1.60:1.61
@@ -679,4 +679,6 @@ void Hayes::Playlist::itemDeleted(FileTr
                 {
                         history.remove(i);
+                        if (historyPosition == i)
+                                historyPosition = history.end();
                         i = history.begin();
                 }
@@ -699,6 +701,6 @@ void Hayes::Playlist::currentWasDeletedR
 {
         currentItem = 0;
-        playCurrent();
         emit newSong(0);
+        playCurrent();
 }
 


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

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