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

List:       kde-commits
Subject:    =?utf-8?q?=5Bamarok=5D_src/core-impl/collections/db/sql=3A_Fix_y?=
From:       Ralf Engels <ralf-engels () gmx ! de>
Date:       2011-01-31 23:21:04
Message-ID: 20110131232104.3BDB4A60C6 () git ! kde ! org
[Download RAW message or body]

Git commit a1a34237a2907884b474024eb1166ced33503933 by Ralf Engels.
Pushed by rengels into branch 'master'.

Fix year setting in SqlCollectionLocation
Setting the album artist right away cannot be done directly but the
collection scanner is now really watching for changes so that
is fixed via the rescan.

Bug 263771

M  +1    -1    src/core-impl/collections/db/sql/SqlCollectionLocation.cpp     

http://commits.kde.org/amarok/a1a34237a2907884b474024eb1166ced33503933

diff --git a/src/core-impl/collections/db/sql/SqlCollectionLocation.cpp \
b/src/core-impl/collections/db/sql/SqlCollectionLocation.cpp index fe589d2..5de9a83 \
                100644
--- a/src/core-impl/collections/db/sql/SqlCollectionLocation.cpp
+++ b/src/core-impl/collections/db/sql/SqlCollectionLocation.cpp
@@ -200,7 +200,7 @@ SqlCollectionLocation::insert( const Meta::TrackPtr &track, const \
QString &url )  if( track->composer() )
         metaTrack->setComposer( track->composer()->name() );
 
-    if( !track->year() >= 0 )
+    if( track->year() > 0 )
         metaTrack->setYear( track->year() );
 
     if( track->genre() )


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

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