From 835ae31f450d8faf5cc6cc77678e8512c21ba906 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Apr 2011 15:50:13 +0000 Subject: (svn r22358) -Codechange: WC_TOOLBAR_MENU isn't the right name when its only used for client list popups --- src/network/network_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network') diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 1d8460d6a..802f81ab2 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1701,7 +1701,7 @@ static const NWidgetPart _nested_client_list_popup_widgets[] = { static const WindowDesc _client_list_popup_desc( WDP_AUTO, 0, 0, - WC_TOOLBAR_MENU, WC_CLIENT_LIST, + WC_CLIENT_LIST_POPUP, WC_CLIENT_LIST, 0, _nested_client_list_popup_widgets, lengthof(_nested_client_list_popup_widgets) ); @@ -1875,7 +1875,7 @@ struct NetworkClientListPopupWindow : Window { this->actions[index].proc(this->client_no); } - DeleteWindowById(WC_TOOLBAR_MENU, 0); + DeleteWindowById(WC_CLIENT_LIST_POPUP, 0); } } }; @@ -1885,7 +1885,7 @@ struct NetworkClientListPopupWindow : Window { */ static void PopupClientList(int client_no, int x, int y) { - DeleteWindowById(WC_TOOLBAR_MENU, 0); + DeleteWindowById(WC_CLIENT_LIST_POPUP, 0); if (NetworkFindClientInfo(client_no) == NULL) return; -- cgit v1.2.3-54-g00ecf