# HG changeset patch # User Elliott Sales de Andrade # Date 1247984421 0 # Node ID 989f1bd200b73788ab553fd26d6e17ddf18a823c # Parent f7c5bb2f662311e2d8b8f2663f6fe7cef643ccaf 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. diff -r f7c5bb2f6623 -r 989f1bd200b7 pidgin/gtkblist.c --- 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); }