--- a/pidgin/gtknotify.c Fri Jul 03 02:35:27 2009 +0000 +++ b/pidgin/gtknotify.c Fri Jul 03 02:51:20 2009 +0000 @@ -1561,8 +1561,15 @@ static void signed_off_cb(PurpleConnection *gc, gpointer unused) { + GtkTreeIter iter; + /* Clear any pending emails for this account */ pidgin_notify_emails(gc, 0, FALSE, NULL, NULL, NULL, NULL); + + if (mail_dialog != NULL && + !gtk_tree_model_get_iter_first(GTK_TREE_MODEL(mail_dialog->treemodel), &iter)) { + reset_mail_dialog(NULL); + } } static void*