# HG changeset patch # User Paul Aurich # Date 1246589480 0 # Node ID fc920924cea375c5d82caad57191db94016f9f93 # Parent c7768f23f519a97bd2f7ccc051132f847c3d598b Close the mail dialog at signoff if it's empty. Closes #9345. diff -r c7768f23f519 -r fc920924cea3 pidgin/gtknotify.c --- 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*