[gnome-utils/gnome-2-28] [baobab] Fixes #601147.
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-utils/gnome-2-28] [baobab] Fixes #601147.
- Date: Sat, 16 Jan 2010 15:05:35 +0000 (UTC)
commit 2572102bb53c997c4440ce4c103d9466ad9479a7
Author: Eduardo Lima Mitev <elima igalia com>
Date: Tue Nov 10 09:41:01 2009 +0100
[baobab] Fixes #601147.
Adds a check to avoid traversing the tree model if it's empty.
Contributed by Alexander Korolkov.
baobab/src/baobab-chart.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c
index c24d6bb..6ae8a27 100644
--- a/baobab/src/baobab-chart.c
+++ b/baobab/src/baobab-chart.c
@@ -520,7 +520,12 @@ baobab_chart_get_items (GtkWidget *chart, GtkTreePath *root)
baobab_chart_free_items (chart);
/* Get the tree iteration corresponding to root */
- gtk_tree_model_get_iter (priv->model, &initial_iter, root);
+ if (!gtk_tree_model_get_iter (priv->model, &initial_iter, root))
+ {
+ priv->model_changed = FALSE;
+ return;
+ }
+
model_root_path = gtk_tree_path_new_first ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]