Skip to content

Commit

Permalink
fix assertion failure when using [combobox] with no [option]
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jan 20, 2016
1 parent 278ac57 commit 71cb8e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/auxiliary/window_builder/combobox.cpp
Expand Up @@ -46,8 +46,9 @@ twidget* tbuilder_combobox::build() const
init_control(widget);

widget->set_retval(get_retval(retval_id_, retval_, id));
widget->set_values(options_);

if(!options_.empty()) {
widget->set_values(options_);
}
DBG_GUI_G << "Window builder: placed combobox '" << id
<< "' with definition '" << definition << "'.\n";

Expand Down

0 comments on commit 71cb8e0

Please sign in to comment.