From fa955a0f1a7863ab7a35c8a3753eac014288931f Mon Sep 17 00:00:00 2001 From: Arnavion Date: Thu, 3 Oct 2013 17:43:44 -0700 Subject: Don't try to update the clear button state when there's no DCC window. --- src/fe-gtk/dccgui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-gtk/dccgui.c b/src/fe-gtk/dccgui.c index 76b1e2fb..562fe9e5 100644 --- a/src/fe-gtk/dccgui.c +++ b/src/fe-gtk/dccgui.c @@ -1128,7 +1128,8 @@ fe_dcc_update (struct DCC *dcc) dcc_update_chat (dcc); } - update_clear_button_sensitivity (); + if (dccfwin.window) + update_clear_button_sensitivity(); } void -- cgit 1.4.1