gtkfunctions: clear combobox model before filling it with possible shows

This commit is contained in:
zvon 2020-02-17 13:37:00 +01:00
parent d197bd5e78
commit 1d4fa4b8ff

View File

@ -34,6 +34,7 @@ void searchShow( Gtk::Entry *entry_show, Gtk::ComboBox *combo_possible,
// fill up combo box with results from thetvdb // fill up combo box with results from thetvdb
auto model = auto model =
static_cast< Gtk::ListStore * >( combo_possible->get_model().get() ); static_cast< Gtk::ListStore * >( combo_possible->get_model().get() );
model->clear();
auto row = *( model->append() ); auto row = *( model->append() );