summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-03 21:08:18 +0000
committerrubidium <rubidium@openttd.org>2009-07-03 21:08:18 +0000
commitab67cf00312ff93672d628ef68c6772469de460c (patch)
tree7b4dff96370851e4c118702f0524c01c168388b3 /src/network
parenta6b0f0b51a0fbf8a04c9632cc466b603fccda189 (diff)
downloadopenttd-ab67cf00312ff93672d628ef68c6772469de460c.tar.xz
(svn r16732) -Fix [FS#2991]: show Close instead of Cancel when there's nothing to canel in the content downloading window.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 5959a1202..652526def 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -402,6 +402,8 @@ public:
this->SetWidgetDisabledState(NCLWW_SELECT_ALL, !show_select_all);
this->SetWidgetDisabledState(NCLWW_SELECT_UPDATE, !show_select_upgrade);
+ this->widget[NCLWW_CANCEL].data = filesize == 0 ? STR_AI_CLOSE : STR_AI_CANCEL;
+
this->DrawWidgets();
/* Edit box to filter for keywords */