changeset 19635:1481ea6bb805

Do not bother the prpl about a tooltip for a disconnected account. Fixes #2945.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 04 Sep 2007 18:17:33 +0000
parents 0b8740878f9e
children 5c92f70f8b0c
files pidgin/gtkblist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Tue Sep 04 05:44:21 2007 +0000
+++ b/pidgin/gtkblist.c	Tue Sep 04 18:17:33 2007 +0000
@@ -3101,7 +3101,8 @@
 			purple_notify_user_info_add_pair(user_info, _("Status"), _("Offline"));
 		}
 
-		if (prpl_info && prpl_info->tooltip_text)
+		if (purple_account_is_connected(b->account) &&
+				prpl_info && prpl_info->tooltip_text)
 		{
 			/* Additional text from the PRPL */
 			prpl_info->tooltip_text(b, user_info, full);