summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-01-10 02:14:02 -0800
committerRichardHitt <rbh00@netcom.com>2013-01-10 02:14:02 -0800
commitbf673072e8457b60a5a8c8d0adf53fa3ccb71ea6 (patch)
tree4a4d78d292998d449f04237c779d6d90e38b44ec /src/fe-gtk/maingui.c
parentefdfa50f1e711e5bdd3ec98a3dedea422b3da362 (diff)
parent475eb9fcaab1d846a3617f587f22bd77cdeddd5e (diff)
Merge branch 'master' into pull350
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index fee8f320..2dfb7b8d 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -1646,7 +1646,8 @@ mg_create_tabmenu (session *sess, GdkEventButton *event, chan *ch)
 								mg_destroy_tab_cb, ch);
 	if (sess && tabmenu_list)
 		menu_create (menu, tabmenu_list, sess->channel, FALSE);
-	menu_add_plugin_items (menu, "\x4$TAB", sess->channel);
+	if (sess)
+		menu_add_plugin_items (menu, "\x4$TAB", sess->channel);
 
 	if (event->window)
 		gtk_menu_set_screen (GTK_MENU (menu), gdk_drawable_get_screen (event->window));