refs #745, do not consolidate with DB data when stashing editor model

(prevents that changed data are overridden by DB data again and hence reverted)
This commit is contained in:
Klaus Basan
2016-08-26 01:22:21 +02:00
committed by Mathew Sutcliffe
parent 04a9381858
commit 0d70e87d11
4 changed files with 8 additions and 5 deletions

View File

@@ -362,12 +362,14 @@ namespace BlackGui
void CDbMappingComponent::ps_stashCurrentModel()
{
const CAircraftModel model(getEditorAircraftModel());
CStatusMessageList msgs(this->validateCurrentModel(true));
if (!msgs.hasErrorMessages())
{
const CAircraftModel editorModel(getEditorAircraftModel());
// do not consolidate, because we want to keep data as they are from the editor
msgs.push_back(
ui->comp_StashAircraft->stashModel(model, true)
ui->comp_StashAircraft->stashModel(editorModel, true, false)
);
}
if (msgs.hasErrorMessages())