Fixed updating of settings after selection of the preset with "modified" suffix

+ Added EVT_SPINCTRL binding
This commit is contained in:
YuSanka 2018-12-21 10:58:00 +01:00
parent 964209f89b
commit fb78957687
2 changed files with 9 additions and 6 deletions

View file

@ -224,7 +224,8 @@ PresetComboBox::PresetComboBox(wxWindow *parent, Preset::Type preset_type) :
if (marker == LABEL_ITEM_MARKER) {
this->SetSelection(this->last_selected);
evt.StopPropagation();
} else if (this->last_selected != selected_item) {
} else if ( this->last_selected != selected_item ||
wxGetApp().get_tab(this->preset_type)->get_presets()->current_is_dirty() ) {
this->last_selected = selected_item;
evt.SetInt(this->preset_type);
evt.Skip();