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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/servicebrowser/lastfm/meta
From:       Nikolaj Hald Nielsen <nhnFreespirit () gmail ! com>
Date:       2008-04-10 10:58:11
Message-ID: 1207825091.995507.7460.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 795434 by nhnielsen:

Make the last.fm track override the fixedName method. This fixes the annoying bug of \
the last.fm service tree showing the currently playing track name instead of the more \
generic stream name. This  does not affect the info that is shown in the playlist in \
any way. 



 M  +8 -0      LastFmMeta.cpp  
 M  +1 -1      LastFmMeta.h  


--- trunk/extragear/multimedia/amarok/src/servicebrowser/lastfm/meta/LastFmMeta.cpp \
#795433:795434 @@ -144,6 +144,12 @@
     return name();
 }
 
+QString LastFm::Track::fixedName() const
+{
+    return streamName();
+}
+
+
 KUrl
 Track::playableUrl() const
 {
@@ -483,3 +489,5 @@
 
 #include "LastFmMeta.moc"
 
+
+
--- trunk/extragear/multimedia/amarok/src/servicebrowser/lastfm/meta/LastFmMeta.h \
#795433:795434 @@ -47,7 +47,7 @@
             virtual QString prettyName() const;
             virtual QString fullPrettyName() const;
             virtual QString sortableName() const;
-
+            virtual QString fixedName() const;
         //methods inherited from Meta::Track
             virtual KUrl playableUrl() const;
             virtual QString prettyUrl() const;


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

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