[ekiga/v4_0] Made the call-history signal the changes first, then do some cleaning later -- fixes a crash on clea
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/v4_0] Made the call-history signal the changes first, then do some cleaning later -- fixes a crash on clea
- Date: Tue, 17 Sep 2013 14:02:45 +0000 (UTC)
commit ebfdaa0690c2f65dfe90714b02ff4f9bc9a3fa6d
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 b110d4d..4db92fa 100644
--- a/lib/engine/components/call-history/history-book.cpp
+++ b/lib/engine/components/call-history/history-book.cpp
@@ -177,6 +177,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)
@@ -187,7 +191,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]