Bug 194220

Summary: Amarok.Playlist.trackInserted fires once when adding multiple tracks
Product: [Applications] amarok Reporter: Michi vK <michisspam>
Component: Tools/Script ManagerAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: peterzhoulei, stharward
Priority: NOR    
Version: 2.2-SVN   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Michi vK 2009-05-26 22:13:17 UTC
When ctrl-selecting multiple files in the collection and adding them to the playlist, Amarok.Playlist.trackInserted is only fired for the first song.

function onTrackInserted( newTrack, row ){
	print("added "+newTrack.title+" "+row);
}
Amarok.Playlist.trackInserted.connect( onTrackInserted );

...should be easy to reproduce.
PS: Amarok.Playlist.trackRemoved works as expected: fired once for every removed song.
Comment 1 Peter ZHOU 2009-07-10 20:09:20 UTC
The signals are changed to:

            void trackInserted( int start, int end );
            void trackRemoved( int start, int end );