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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Mark Kretschmann <markey () web ! de>
Date:       2005-06-25 6:54:20
Message-ID: 1119682460.463450.18338.nullmailer () svn ! kde ! org
[Download RAW message or body]

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<IncrementalCollectionReader*>(e)->hasChanged() );
+    DEBUG_BLOCK
+
+    if ( e->type() == (int)CollectionReader::JobFinishedEvent ) {
+        if ( dynamic_cast<IncrementalCollectionReader*>( e ) ) {
+            debug() << "Event from IncrementalCollectionReader received.\n";
+            emit scanDone( static_cast<IncrementalCollectionReader*>(e)->hasChanged() );
+        }
+        else {
+            debug() << "Event from CollectionReader received.\n";
+            emit scanDone( static_cast<CollectionReader*>(e)->wasSuccessful() );
+        }
+    }
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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