aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-13 17:53:00 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-13 17:53:00 +0800
commit7420d677c84044693d57e210c55fb59ad4990cf2 (patch)
tree7b861487b2e6d30eb7968d32d1a307233e3bd362 /mail
parent0c25f646c8e5d1e8f0617e14949e824de6e7f1fb (diff)
downloadgsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar.gz
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar.bz2
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar.lz
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar.xz
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.tar.zst
gsoc2013-evolution-7420d677c84044693d57e210c55fb59ad4990cf2.zip
Bug #677597 - Crash on vFolder source folder removal
Diffstat (limited to 'mail')
-rw-r--r--mail/em-vfolder-editor-rule.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-vfolder-editor-rule.c b/mail/em-vfolder-editor-rule.c
index 380031d876..a108e2bc43 100644
--- a/mail/em-vfolder-editor-rule.c
+++ b/mail/em-vfolder-editor-rule.c
@@ -247,11 +247,12 @@ select_source (GtkWidget *list,
GtkTreeIter iter;
gtk_tree_view_get_cursor (data->list, &path, &column);
- gtk_tree_model_get_iter (GTK_TREE_MODEL (data->model), &iter, path);
+ if (path && gtk_tree_model_get_iter (GTK_TREE_MODEL (data->model), &iter, path))
+ gtk_tree_model_get (GTK_TREE_MODEL (data->model), &iter, 0, &data->current, -1);
+ else
+ data->current = NULL;
gtk_tree_path_free (path);
- gtk_tree_model_get (GTK_TREE_MODEL (data->model), &iter, 0, &data->current, -1);
-
set_sensitive (data);
}