messagingapp/msgui/appengine/src/conversationchangehandler.cpp
branchGCC_SURGE
changeset 47 5b14749788d7
parent 44 36f374c67aa8
child 52 12db4185673b
--- a/messagingapp/msgui/appengine/src/conversationchangehandler.cpp	Thu Jun 17 09:57:06 2010 +0100
+++ b/messagingapp/msgui/appengine/src/conversationchangehandler.cpp	Thu Jul 22 16:32:06 2010 +0100
@@ -104,7 +104,6 @@
     const CCsConversationEntry& aConvEntry)
 {
     mConversationsModel->addRow(aConvEntry, true);
-    ConversationsEngine::instance()->emitConversationModelUpdated();
 }
 
 // ---------------------------------------------------------------------------
@@ -115,7 +114,13 @@
     const CCsConversationEntry& aConvEntry)
 {
     mConversationsModel->deleteRow(aConvEntry.EntryId());
-    ConversationsEngine::instance()->emitConversationModelUpdated();
+    
+    //check if the CV model row count has become zero
+    // then needs to emit signal
+    if (mConversationsModel->rowCount() == 0)
+    {
+        mConversationsModel->emitConversationViewEmpty();
+    }
 }
 
 //-----------------------------------------------------------------------