瀏覽代碼

Remove menu item on session close.

Signed-off-by: Bradley Smith <[email protected]>
Bradley Smith 15 年之前
父節點
當前提交
93d7dad6e4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/mssh-window.c

+ 2 - 0
src/mssh-window.c

@@ -149,6 +149,8 @@ static gboolean mssh_window_session_close(gpointer data)
 	}
 	else
 	{
+		gtk_widget_destroy(data_pair->terminal->menu_item);
+
 		gtk_container_remove(GTK_CONTAINER(data_pair->window->table),
 			GTK_WIDGET(data_pair->terminal));