diff options
author | Milan Crha <mcrha@redhat.com> | 2012-06-13 17:53:00 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-06-13 17:53:00 +0800 |
commit | 7420d677c84044693d57e210c55fb59ad4990cf2 (patch) | |
tree | 7b861487b2e6d30eb7968d32d1a307233e3bd362 /mail | |
parent | 0c25f646c8e5d1e8f0617e14949e824de6e7f1fb (diff) | |
download | gsoc2013-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.c | 7 |
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); } |