aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-prefs.c
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/em-account-prefs.c
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/em-account-prefs.c')
-rw-r--r--mail/em-account-prefs.c3
1 files changed, 3 insertions, 0 deletions
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);