[ekiga] DynamicObjectStore: Fixed add_connection.



commit 43c65b47df61bc2f213743a5fbbfb661cbcc3ead
Author: Damien Sandras <dsandras seconix com>
Date:   Tue Oct 6 18:50:42 2015 +0200

    DynamicObjectStore: Fixed add_connection.
    
    add_connection was adding the object to the collection without
    connecting the updated & removed signals. If add_connection was called
    before add_object, those signals were never connected.

 lib/engine/framework/dynamic-object-store.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/framework/dynamic-object-store.h b/lib/engine/framework/dynamic-object-store.h
index 0b49d1e..21c0e04 100644
--- a/lib/engine/framework/dynamic-object-store.h
+++ b/lib/engine/framework/dynamic-object-store.h
@@ -38,9 +38,10 @@
 
 #include <boost/signals2.hpp>
 #include <boost/bind.hpp>
-#include <list>
+#include <iostream>
 
 #include <boost/smart_ptr.hpp>
+#include <typeinfo>
 
 #include "map-key-iterator.h"
 #include "map-key-const-iterator.h"
@@ -127,7 +128,7 @@ Ekiga::DynamicObjectStore<ObjectType>::add_connection (boost::shared_ptr<ObjectT
 {
   typename container_type::iterator iter = objects.find (obj);
   if (iter == objects.end ())
-    objects[obj] = boost::shared_ptr<scoped_connections> (new scoped_connections);
+    add_object (obj); // Add object
   objects[obj]->add (connection);
 }
 


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