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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/scriptengine
From:       Leo Franchi <lfranchi () kde ! org>
Date:       2009-05-04 8:53:44
Message-ID: 1241427224.137096.24612.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 963231 by lfranchi:

make setLyricsForTrack actually work. unimplemented API functions is bad

 M  +4 -2      AmarokLyricsScript.cpp  


--- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokLyricsScript.cpp #963230:963231
@@ -19,6 +19,7 @@
 #include "AmarokLyricsScript.h"
 
 #include "Amarok.h"
+#include "CollectionManager.h"
 #include "Debug.h"
 #include "EngineController.h"
 #include "LyricsManager.h"
@@ -69,8 +70,9 @@
 void
 AmarokLyricsScript::setLyricsForTrack( const QString& trackUrl, const QString& lyrics ) const
 {
-    Q_UNUSED( trackUrl );
-    Q_UNUSED( lyrics );
+   Meta::TrackPtr track = CollectionManager::instance()->trackForUrl( KUrl( trackUrl ) );
+   if( track )
+       track->setCachedLyrics( lyrics );
 }
 
 QString
[prev in list] [next in list] [prev in thread] [next in thread] 

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