From 2a18e6c616580e208eaf65b4f1ce0d12350853e9 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sat, 28 Jul 2007 20:16:57 +0000 Subject: ** Fix for bug #458894 svn path=/trunk/; revision=33876 --- mail/ChangeLog | 7 +++++++ mail/em-account-prefs.c | 3 +++ 2 files changed, 10 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index a3a08b018d..74d130bbeb 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2007-07-24 Johnny Jacob + + ** Fix for bug #458894 + + * em-account-prefs.c : (account_delete_clicked) : Test the + validity of Iter and select the row accordingly. + 2007-07-29 Srinivasa Ragavan ** Fix for bug #453544 from hggdh diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c index 6ae6b35ed5..4ddffd0d60 100644 --- a/mail/em-account-prefs.c +++ b/mail/em-account-prefs.c @@ -262,6 +262,9 @@ account_delete_clicked (GtkButton *button, gpointer user_data) len = e_list_length ((EList *) accounts); if (len > 0) { + if ( !gtk_list_store_iter_is_valid ((GtkListStore *) model, &iter)) + gtk_tree_model_get_iter_first (model, &iter); + gtk_tree_selection_select_iter (selection, &iter); } else { gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_edit), FALSE); -- cgit v1.2.3