Mercurial > pidgin.yaz
changeset 27340:fc920924cea3
Close the mail dialog at signoff if it's empty. Closes #9345.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 03 Jul 2009 02:51:20 +0000 |
parents | c7768f23f519 |
children | 1643ace55ef8 |
files | pidgin/gtknotify.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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*