videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp
changeset 49 824471cb468a
parent 41 229f037ce963
child 50 21fe8338c6bf
--- a/videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp	Thu Jul 08 13:05:19 2010 +0300
+++ b/videocollection/videocollectionwrapper/src/videolistdatamodel_p.cpp	Fri Jul 23 11:10:06 2010 +0300
@@ -15,7 +15,7 @@
 * 
 */
 
-// Version : %version: 38.1.1 %
+// Version : %version: 38.1.2 %
 
 // INCLUDE FILES
 #include <hbglobal.h>
@@ -431,7 +431,9 @@
         return;
     }
     QSet<TMPXItemId> items;
-       
+    
+    int oldCount = mAlbumData[albumId].count();
+    
     // remove existing
     mAlbumData.remove(albumId);
     
@@ -450,11 +452,14 @@
  
     mAlbumData[albumId] = items;
     
-    // signal that album has been updated
-    emit q_ptr->albumChanged();
+    if(oldCount != items.count())
+    {
+        // signal that album has been updated
+        emit q_ptr->albumChanged();
 
-    // signal that model has changed.
-    emit q_ptr->modelChanged();
+        // signal that model has changed.
+        emit q_ptr->modelChanged();
+    }
 }