Skip to content

Commit

Permalink
GUI2/Multimenu Button: fixed maximum_shown defaulting to 0 instead of 1
Browse files Browse the repository at this point in the history
Fixes the campaign selection dialog's modification dropdown saying "1 other" for
the first mod you select.

(cherry-picked from commit f54b3f7)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent 025af47 commit 32f0f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/widgets/multimenu_button.cpp
Expand Up @@ -324,7 +324,7 @@ namespace implementation

builder_multimenu_button::builder_multimenu_button(const config& cfg)
: builder_styled_widget(cfg)
, max_shown_(cfg["maximum_shown"])
, max_shown_(cfg["maximum_shown"].to_unsigned(1))
, options_()
{
for(const auto& option : cfg.child_range("option")) {
Expand Down

0 comments on commit 32f0f0e

Please sign in to comment.