aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-29 04:16:57 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-29 04:16:57 +0800
commit2a18e6c616580e208eaf65b4f1ce0d12350853e9 (patch)
tree07fd61369d29b1edaed95655f099c9ee114d9d68 /mail
parentccbafd2269a86ea4a4dd9743fd1b8cff2a79b902 (diff)
downloadgsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar.gz
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar.bz2
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar.lz
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar.xz
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.tar.zst
gsoc2013-evolution-2a18e6c616580e208eaf65b4f1ce0d12350853e9.zip
** Fix for bug #458894
svn path=/trunk/; revision=33876
Diffstat (limited to 'mail')
-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);