Commit 293407ec authored by Scott Wheeler's avatar Scott Wheeler
Browse files

Don't sort based on the values of hidden columns.

svn path=/trunk/kdemultimedia/juk/; revision=229953
parent 782868ba
......@@ -206,11 +206,16 @@ int PlaylistItem::compare(QListViewItem *item, int column, bool ascending) const
// Loop through the columns doing comparisons until something is differnt.
// If all else is the same, compare the track name.
for(int i = ArtistColumn; i <= TrackNumberColumn; i++) {
Playlist *p = static_cast<Playlist *>(listView());
int last = p->isColumnVisible(AlbumColumn) ? TrackNumberColumn : ArtistColumn;
for(int i = ArtistColumn; i <= last; i++) {
if(p->isColumnVisible(i)) {
c = compare(this, playlistItem, i, ascending);
if(c != 0)
return c;
return compare(this, playlistItem, TrackColumn, ascending);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment