[evolution] Bug #677597 - Crash on vFolder source folder removal
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #677597 - Crash on vFolder source folder removal
- Date: Wed, 13 Jun 2012 09:53:58 +0000 (UTC)
commit 7420d677c84044693d57e210c55fb59ad4990cf2
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 13 11:53:00 2012 +0200
Bug #677597 - Crash on vFolder source folder removal
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 380031d..a108e2b 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]