summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-04-22 15:50:13 +0000
committerrubidium <rubidium@openttd.org>2011-04-22 15:50:13 +0000
commit835ae31f450d8faf5cc6cc77678e8512c21ba906 (patch)
tree597fdf48ade8318a70517cf1b6f8a609cd0277ea /src/network
parente2d5ce1b0ed775c5dbc92dc309fc93dea985e72f (diff)
downloadopenttd-835ae31f450d8faf5cc6cc77678e8512c21ba906.tar.xz
(svn r22358) -Codechange: WC_TOOLBAR_MENU isn't the right name when its only used for client list popups
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp6
1 files changed, 3 insertions, 3 deletions
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;