changeset 27664:989f1bd200b7

Prevent a crash if a plugin set a mini-dialog during load. If that plugin were auto-loaded on startup, that would be before we actually created the gtkblist. Of course, without a gtkblist, the mini-dialog doesn't go anywhere. I think the plugins should connect to "gtkblist-created" anyway.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 19 Jul 2009 06:20:21 +0000
parents f7c5bb2f6623
children b7ce89597a89
files pidgin/gtkblist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sat Jul 18 04:24:47 2009 +0000
+++ b/pidgin/gtkblist.c	Sun Jul 19 06:20:21 2009 +0000
@@ -7216,7 +7216,7 @@
 static void
 set_urgent(void)
 {
-	if (!GTK_WIDGET_HAS_FOCUS(gtkblist->window))
+	if (gtkblist->window && !GTK_WIDGET_HAS_FOCUS(gtkblist->window))
 		pidgin_set_urgent(GTK_WINDOW(gtkblist->window), TRUE);
 }