summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2013-10-03 17:43:44 -0700
committerArnavion <arnavion@gmail.com>2013-10-03 17:43:44 -0700
commitfa955a0f1a7863ab7a35c8a3753eac014288931f (patch)
tree0a0cd9ca412f1a51efddf5b183484541e4097fda /src/fe-gtk
parent301e5d260d14738fba0d69e73129c52221a21839 (diff)
Don't try to update the clear button state when there's no DCC window.
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/dccgui.c3
1 files changed, 2 insertions, 1 deletions
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