Skip to content

Commit

Permalink
Fix some issues with edit redeclerable parameter button (#11911)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksKBV committed Feb 7, 2024
1 parent ef124e4 commit f528132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Element/ElementProperties.cpp
Expand Up @@ -901,7 +901,7 @@ void Parameter::editRedeclareClassButtonClicked()
const QJsonObject defaultModifierJSON = MainWindow::instance()->getOMCProxy()->modifierToJSON(defaultModifier);
ModelInstance::Modifier *pDefaultElementModifier = new ModelInstance::Modifier("", QJsonValue(), mpModelInstanceElement->getParentModel());
pDefaultElementModifier->deserialize(QJsonValue(defaultModifierJSON));
ModelInstance::Model *pNewModel = new ModelInstance::Model(newModelJSON);
ModelInstance::Model *pNewModel = new ModelInstance::Model(newModelJSON, mpModelInstanceElement);
mpModelInstanceElement->setModel(pNewModel);
MainWindow::instance()->getProgressBar()->setRange(0, 0);
MainWindow::instance()->showProgressBar();
Expand Down

0 comments on commit f528132

Please sign in to comment.