Skip to content

Commit

Permalink
small code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Feb 23, 2017
1 parent 5bde742 commit 6140f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/dialogs/drop_down_menu.cpp
Expand Up @@ -139,7 +139,7 @@ void drop_down_menu::pre_show(window& window)
find_widget<toggle_panel>(&new_row, "panel", false).set_tooltip(entry["tooltip"]);

if(entry.has_attribute("image")) {
image* img = new image;
image* img = new image();
img->set_definition("default");
img->set_label(entry["image"]);

Expand All @@ -150,7 +150,7 @@ void drop_down_menu::pre_show(window& window)
}

if(entry.has_attribute("checkbox")) {
toggle_button* checkbox = new toggle_button;
toggle_button* checkbox = new toggle_button();
checkbox->set_definition("default");
checkbox->set_id("checkbox");
checkbox->set_value_bool(entry["checkbox"].to_bool(false));
Expand Down

0 comments on commit 6140f83

Please sign in to comment.