[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/amarok/src
From: Sami Nieminen <sami.nieminen () iki ! fi>
Date: 2005-02-07 20:02:45
Message-ID: 20050207200245.E3B911D1CA () office ! kde ! org
[Download RAW message or body]
CVS commit by nieminen:
Make a collection rescan on start if the database version was increased or the \
collection was otherwise empty.
M +7 -0 playlistbrowser.cpp 1.86
--- kdeextragear-1/amarok/src/playlistbrowser.cpp #1.85:1.86
@@ -138,4 +138,11 @@ PlaylistBrowser::PlaylistBrowser( const
addPlaylist( locate( "data","amarok/data/Cool-Streams.m3u" ) );
lastPlaylist = static_cast<PlaylistBrowserItem*>( m_listview->lastItem() );
+
+ // If database version is updated, the collection needs to be rescanned.
+ // This is done here because of a chicken/egg problem.
+ if ( CollectionDB::instance()->isEmpty() )
+ {
+ CollectionDB::instance()->startScan();
+ }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic