From 2d90396b5c3013ad63f39273d2e39ee2c1a69d60 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 24 May 2018 09:51:57 -0400 Subject: [PATCH] conversationmodel: dirty conversations when removing interaction Change-Id: I5e3f66be4aa559105f5b80acd0e422499d9aa2f6 Reviewed-by: Hugo Lefeuvre <hugo.lefeuvre@savoirfairelinux.com> --- src/conversationmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index 850384b6..e75f3750 100644 --- a/src/conversationmodel.cpp +++ b/src/conversationmodel.cpp @@ -748,8 +748,10 @@ ConversationModel::clearInteractionFromConversation(const std::string& convId, c qDebug() << "can't clear interaction from conversation: " << e.what(); } } - if (erased_keys > 0) + if (erased_keys > 0) { + pimpl_->dirtyConversations.first = true; emit interactionRemoved(convId, interactionId); + } if (lastInteractionUpdated) { // last interaction as changed, so the order can changes. pimpl_->sortConversations(); -- GitLab