]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dropdown.cpp
Use nullptr instead of 0 for pointers
[libs/gltk.git] / source / dropdown.cpp
index f922001e2db0764c38000ec046bb9cd1c53150e4..68c1beed1321fea803981b36701246576273a397 100644 (file)
@@ -27,8 +27,6 @@ void Dropdown::init()
 {
        input_type = INPUT_NAVIGATION;
 
-       dropped = false;
-
        add(list);
        list.set_visible(false);
        list.set_view_all();
@@ -191,7 +189,7 @@ void Dropdown::list_item_selected(unsigned index)
        text.set(list.get_data().get_string(index));
 
        signal_item_selected.emit(index);
-       rebuild();
+       mark_rebuild();
 }
 
 void Dropdown::list_selection_cleared()