Version: 2.2.2 (using KDE 4.4.0) Installed from: Gentoo Packages When trying to add song to Saved Playlists, and search bar is active (with show only matches) it adding wrong song. For example: I have two albums in playlist. First one is songs, second is music. If search active with 'songs' and i'm trying to add songs-1 track to saved playlist, it's adding music-1 track instead. Cleaning search bar is making everything works. Screenshot for example - http://img714.imageshack.us/img714/2421/amarok.png
I can confirm this. This has been in 2.X for a very long time! I use the debian build 2.2.2, but all other version i can remember are also affected. Every time i want to put some music in my mp3 player or filter my playlist for something like "Rammstein" drag&drob some files into dolphin or some playlist .. and then it copys freaking Spice Girls onto my mp3 player ... that is VERY annoying!
Just tested with 2.3 beta1. The bug is still there.
*** Bug 229703 has been marked as a duplicate of this bug. ***
commit 65b1b9e2044a87fb8bedd03b73628bbe07258045 Author: Nikolaj Hald Nielsen <nhn@kde.org> Date: Mon Mar 15 09:29:40 2010 +0100 Correctly use mapToSource when getting mime data from a Playlist proxy model. This fixes the issues with the wrong track getting added to a stored playlist or dragged to an external app when sorting and/or filtering is active. ~lart Teo' for not fixing this _very_ obvious TODO ~lart nhn for not noticing and lart'ing Teo' sooner. BUG: 226503 diff --git a/src/playlist/proxymodels/ProxyBase.cpp b/src/playlist/proxymodels/ProxyBase.cpp index 2e182ac..9fb933c 100644 --- a/src/playlist/proxymodels/ProxyBase.cpp +++ b/src/playlist/proxymodels/ProxyBase.cpp @@ -198,7 +198,15 @@ ProxyBase::idAt( const int row ) const QMimeData * ProxyBase::mimeData( const QModelIndexList &indexes ) const { - return m_belowModel->mimeData( indexes ); //TODO: probably needs mapToSource! + + QModelIndexList sourceIndexes; + foreach( QModelIndex index, indexes ) + { + sourceIndexes << mapToSource( index ); + } + + return m_belowModel->mimeData( sourceIndexes ); + } QStringList
*** Bug 233279 has been marked as a duplicate of this bug. ***