summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-21 15:02:32 -0700
committerTingPing <tngpng@gmail.com>2013-03-21 15:02:32 -0700
commitd37ef26104d3b302d983cf444595f8226e0bbb30 (patch)
tree41f38be53105089f26c84f619024618635af2205 /src/fe-gtk/maingui.c
parentc5404b8e25afdc30b5bcafdd2a21b169443e00cc (diff)
parentec576f315aacd314fd2688a553efb9a14761a2c5 (diff)
Merge pull request #459 from RichardHitt/banlist1
Redesign the Ban List window.  Closes #303, closes #342, closes #427
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 41344c8f..2d02c59d 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -3530,8 +3530,8 @@ fe_server_callback (server *serv)
 void
 fe_session_callback (session *sess)
 {
-	if (sess->res->banlist_window)
-		mg_close_gen (NULL, sess->res->banlist_window);
+	if (sess->res->banlist && sess->res->banlist->window)
+		mg_close_gen (NULL, sess->res->banlist->window);
 
 	if (sess->res->input_text)
 		free (sess->res->input_text);