[evolution/gnome-3-4] Bug #677597 - Crash on vFolder source folder removal
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-4] Bug #677597 - Crash on vFolder source folder removal
- Date: Wed, 13 Jun 2012 09:54:41 +0000 (UTC)
commit 5038f17a3b27ef128c0781ad011cc9f229843a22
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 13 11:54:08 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 1ee69dd..6f955b5 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]