Changeset - r12305:96f92be9b2e5
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-07-03 21:08:18
rubidium@openttd.org
(svn r16732) -Fix [FS#2991]: show Close instead of Cancel when there's nothing to canel in the content downloading window.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/network_content_gui.cpp
Show inline comments
 
@@ -399,12 +399,14 @@ public:
 

	
 
		this->SetWidgetDisabledState(NCLWW_DOWNLOAD, filesize == 0 || FindWindowById(WC_NETWORK_STATUS_WINDOW, 0) != NULL);
 
		this->SetWidgetDisabledState(NCLWW_UNSELECT, filesize == 0);
 
		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 */
 
		this->DrawEditBox(NCLWW_FILTER);
 
		DrawString(this->widget[NCLWW_MATRIX].left, this->widget[NCLWW_FILTER].left - 8, this->widget[NCLWW_FILTER].top + 2, STR_CONTENT_FILTER_TITLE, TC_FROMSTRING, SA_RIGHT);
 

	
0 comments (0 inline, 0 general)