From kde-commits Mon Jan 31 23:21:04 2011 From: Ralf Engels Date: Mon, 31 Jan 2011 23:21:04 +0000 To: kde-commits Subject: =?utf-8?q?=5Bamarok=5D_src/core-impl/collections/db/sql=3A_Fix_y?= Message-Id: <20110131232104.3BDB4A60C6 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129651611705014 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() )