aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-prefs.c3
2 files changed, 10 insertions, 0 deletions
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 <jjohnny@novell.com>
+
+ ** 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 <sragavan@novell.com>
** 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);