[ekiga] Made the call-history signal the changes first, then do some cleaning later -- fixes a crash on clea



commit 80d8964b23fe2823a4388900f4dcaffc0c219279
Author: Julien Puydt <jpuydt free fr>
Date:   Mon Jan 21 15:54:38 2013 +0100

    Made the call-history signal the changes first, then do some cleaning later -- fixes a crash on clear

 .../components/call-history/history-book.cpp       |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/call-history/history-book.cpp b/lib/engine/components/call-history/history-book.cpp
index 3880ff1..6fc1b63 100644
--- a/lib/engine/components/call-history/history-book.cpp
+++ b/lib/engine/components/call-history/history-book.cpp
@@ -182,6 +182,10 @@ History::Book::clear ()
 
   std::list<ContactPtr> old_contacts = ordered_contacts;
   ordered_contacts.clear ();
+
+  cleared ();
+  updated ();
+
   for (std::list<ContactPtr>::iterator iter = old_contacts.begin ();
        iter != old_contacts.end();
        ++iter)
@@ -192,7 +196,6 @@ History::Book::clear ()
   xmlDocSetRootElement (doc.get (), root);
 
   save ();
-  cleared ();
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]