Summary: | Collection Browser won't show artist names for various artists tracks | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Johannes Koßler <kosslerj> |
Component: | Collection Browser | Assignee: | Peter C. Ndikuwera <pndiku> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | pndiku |
Priority: | NOR | ||
Version: | 2.3.2 | ||
Target Milestone: | 2.4.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.4 | |
Sentry Crash Report: |
Description
Johannes Koßler
2010-09-29 20:17:54 UTC
*** This bug has been marked as a duplicate of bug 208876 *** I don't think that's the same bug at all. Bug 208876 is about the Albums applet not showing certain artist names (the applet normally shows them for compilations). This bug is about the Collection Browser (i.e. the sidebar) not showing any artist names (that's why this is a wish). This is not about the Albums applet. It is exactly the same bug, see this comment https://bugs.kde.org/show_bug.cgi?id=208876#c2 This isn't a duplicate. I'm posting a fix for this to the review board. commit b813a0ed840f5fb12af6cca2faea147d52606902 Author: Peter C. Ndikuwera <pndiku@gmail.com> Date: Sat Oct 2 08:12:19 2010 +0300 Collection Browser should show artist names for compilations BUG: 252790 diff --git a/src/browsers/CollectionTreeItem.cpp b/src/browsers/CollectionTreeItem.cpp index 10fb1fc..b390900 100644 --- a/src/browsers/CollectionTreeItem.cpp +++ b/src/browsers/CollectionTreeItem.cpp @@ -158,6 +158,11 @@ CollectionTreeItem::data( int role ) const Meta::TrackPtr track = Meta::TrackPtr::dynamicCast( m_data ); QString name = track ? track->fixedName() : m_data->fixedName(); + if ( track && track->album()->isCompilation() ) + { + name.prepend( QString("%1 - ").arg(track->artist()->prettyName()) ); + } + if( AmarokConfig::showTrackNumbers() && track ) { int trackNum = track->trackNumber(); |