From d8f3a807240708f52e9d7474f76fcdd64dee529a Mon Sep 17 00:00:00 2001
From: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Date: Wed, 23 Sep 2015 13:56:11 -0400
Subject: [PATCH] smartlist: add missing signal

When adding the first call below a Person or CM, we didn't emitted dataChanged
This was preventing the UI to know that this row needed to be redraw.

Issue: #75334
Change-Id: I3c59203260055ef3b578d6f8a4f95383a3006a4f
---
 src/recentmodel.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/recentmodel.cpp b/src/recentmodel.cpp
index 77d7b4fe..bbe08c25 100644
--- a/src/recentmodel.cpp
+++ b/src/recentmodel.cpp
@@ -574,8 +574,10 @@ void RecentModelPrivate::slotCallAdded(Call* call, Call* parent)
       q_ptr->beginInsertRows(q_ptr->index(n->m_Index,0), 0, n->m_lChildren.size());
       n->m_lChildren.append(callNode);
       q_ptr->endInsertRows();
-   } else // size == 0, only add the child no signal emitted
+   } else { // size == 0, only add the child, emit dataChanged for the top node
       n->m_lChildren.append(callNode);
+      emit q_ptr->dataChanged(q_ptr->index(n->m_Index,0),q_ptr->index(n->m_Index,0));
+   }
 }
 
 void RecentModelPrivate::slotUpdate()
-- 
GitLab