[baobab] Chart: mark the model as changed when setting new model



commit a343821329f2be3c052f4373a8a5fe5f3cac8010
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Fri Jul 5 22:24:20 2013 +0200

    Chart: mark the model as changed when setting new model
    
    Needed to ensure that get_items() is called.
    This fixes some criticals related to GtkTreeIter stamp

 src/baobab-chart.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-chart.vala b/src/baobab-chart.vala
index 9b70c56..41cb0fb 100644
--- a/src/baobab-chart.vala
+++ b/src/baobab-chart.vala
@@ -101,6 +101,8 @@ namespace Baobab {
                 }
 
                 model_ = value;
+                model_changed = true;
+
                 root = null;
 
                 connect_model_signals (model_);


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