Mercurial > pidgin.yaz
diff pidgin/gtkblist.c @ 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 | 381acdb3cedc |
children | 5d75276a575f |
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); }