Changeset - r26645:7d3212227db0
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 18 months ago 2022-12-07 23:32:27
j.g.rennison@gmail.com
Fix #10214: League and graph buttons in toolbar not having a default action
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -716,7 +716,7 @@ static CallBackFunction ToolbarGraphsCli
 

	
 
	if (_toolbar_mode != TB_NORMAL) AddDropDownLeagueTableOptions(list);
 

	
 
	ShowDropDownList(w, std::move(list), 0, WID_TN_GRAPHS, 140, true, true);
 
	ShowDropDownList(w, std::move(list), GRMN_OPERATING_PROFIT_GRAPH, WID_TN_GRAPHS, 140, true, true);
 
	if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
 

	
 
	return CBF_NONE;
 
@@ -728,7 +728,8 @@ static CallBackFunction ToolbarLeagueCli
 

	
 
	AddDropDownLeagueTableOptions(list);
 

	
 
	ShowDropDownList(w, std::move(list), 0, WID_TN_LEAGUE, 140, true, true);
 
	int selected = list[0]->result;
 
	ShowDropDownList(w, std::move(list), selected, WID_TN_LEAGUE, 140, true, true);
 
	if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
 

	
 
	return CBF_NONE;
0 comments (0 inline, 0 general)