Fix error of invalid cast to GTK_COMBO_BOX in trans importer

To get to the combobox from the entry you need to go two levels above
which takes you through a GTK_BOX to the GTK_COMBO_BOX
This commit is contained in:
Robert Fewell 2017-06-28 11:19:37 +01:00
parent ad89048242
commit 56ca411351

View File

@ -731,7 +731,9 @@ CsvImpTransAssist::preview_settings_name (GtkEntry* entry)
if (text)
tx_imp->settings_name(text);
auto combo = gtk_widget_get_parent (GTK_WIDGET(entry));
auto box = gtk_widget_get_parent (GTK_WIDGET(entry));
auto combo = gtk_widget_get_parent (GTK_WIDGET(box));
preview_handle_save_del_sensitivity (GTK_COMBO_BOX(combo));
}