evolution r37332 - branches/gnome-2-24/plugins/email-custom-header
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r37332 - branches/gnome-2-24/plugins/email-custom-header
- Date: Wed, 25 Feb 2009 11:23:48 +0000 (UTC)
Author: mcrha
Date: Wed Feb 25 11:23:48 2009
New Revision: 37332
URL: http://svn.gnome.org/viewvc/evolution?rev=37332&view=rev
Log:
2009-02-25 Milan Crha <mcrha redhat com>
** Fix for bug #572399
* email-custom-header.c: (header_foreach_check_isempty):
Do not read from invalid iterator after call of row changed.
Modified:
branches/gnome-2-24/plugins/email-custom-header/ChangeLog
branches/gnome-2-24/plugins/email-custom-header/email-custom-header.c
Modified: branches/gnome-2-24/plugins/email-custom-header/email-custom-header.c
==============================================================================
--- branches/gnome-2-24/plugins/email-custom-header/email-custom-header.c (original)
+++ branches/gnome-2-24/plugins/email-custom-header/email-custom-header.c Wed Feb 25 11:23:48 2009
@@ -659,12 +659,13 @@
signal (if we delete the row, then the iter gets corrupted) */
if ((keyword) && !(g_utf8_strlen (g_strstrip (keyword), -1) > 0))
gtk_tree_model_row_changed (model, path, iter);
-
- gtk_tree_model_get (model, iter, HEADER_VALUE_COLUMN, &value, -1);
- /* Check if the keyword is not empty and then emit the row-changed
- signal (if we delete the row, then the iter gets corrupted) */
- if ((value) && !(g_utf8_strlen (g_strstrip (value), -1) > 0))
- gtk_tree_model_row_changed (model, path, iter);
+ else {
+ gtk_tree_model_get (model, iter, HEADER_VALUE_COLUMN, &value, -1);
+ /* Check if the keyword is not empty and then emit the row-changed
+ signal (if we delete the row, then the iter gets corrupted) */
+ if ((value) && !(g_utf8_strlen (g_strstrip (value), -1) > 0))
+ gtk_tree_model_row_changed (model, path, iter);
+ }
g_free (keyword);
g_free (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]