From kde-commits Sat Jun 25 06:54:20 2005 From: Mark Kretschmann Date: Sat, 25 Jun 2005 06:54:20 +0000 To: kde-commits Subject: extragear/multimedia/amarok/src Message-Id: <1119682460.463450.18338.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111968247005020 SVN commit 428741 by markey: FIX: Reliably refresh the Collection-Browser view after a full collection rescan. M +2 -0 collectionbrowser.cpp M +12 -2 collectiondb.cpp --- trunk/extragear/multimedia/amarok/src/collectionbrowser.cpp #428740:428741 @@ -488,6 +488,8 @@ void CollectionView::scanDone( bool changed ) //SLOT { + DEBUG_BLOCK + if ( changed ) { renderView(); --- trunk/extragear/multimedia/amarok/src/collectiondb.cpp #428740:428741 @@ -1877,8 +1877,18 @@ void CollectionDB::customEvent( QCustomEvent *e ) { - if ( e->type() == (int)CollectionReader::JobFinishedEvent ) - emit scanDone( static_cast(e)->hasChanged() ); + DEBUG_BLOCK + + if ( e->type() == (int)CollectionReader::JobFinishedEvent ) { + if ( dynamic_cast( e ) ) { + debug() << "Event from IncrementalCollectionReader received.\n"; + emit scanDone( static_cast(e)->hasChanged() ); + } + else { + debug() << "Event from CollectionReader received.\n"; + emit scanDone( static_cast(e)->wasSuccessful() ); + } + } }