equal
deleted
inserted
replaced
605 case SNGRFS_PRESET_SAVE: |
605 case SNGRFS_PRESET_SAVE: |
606 SaveGRFPresetToConfig(str, this->list); |
606 SaveGRFPresetToConfig(str, this->list); |
607 GetGRFPresetList(&_grf_preset_list); |
607 GetGRFPresetList(&_grf_preset_list); |
608 |
608 |
609 /* Switch to this preset */ |
609 /* Switch to this preset */ |
610 for (uint i = 0; i < lengthof(_grf_preset_list); i++) { |
610 for (uint i = 0; i < _grf_preset_list.Length(); i++) { |
611 if (_grf_preset_list[i] != NULL && strcmp(_grf_preset_list[i], str) == 0) { |
611 if (_grf_preset_list[i] != NULL && strcmp(_grf_preset_list[i], str) == 0) { |
612 this->preset = i; |
612 this->preset = i; |
613 break; |
613 break; |
614 } |
614 } |
615 } |
615 } |
|
616 |
|
617 this->SetDirty(); |
616 break; |
618 break; |
617 |
619 |
618 case SNGRFS_SET_PARAMETERS: { |
620 case SNGRFS_SET_PARAMETERS: { |
619 /* Parse our new "int list" */ |
621 /* Parse our new "int list" */ |
620 GRFConfig *c = this->sel; |
622 GRFConfig *c = this->sel; |