Changeset f3ac237 in OpenModelica


Ignore:
Timestamp:
2021-04-07T11:53:10+02:00 (3 years ago)
Author:
Adeel Asghar <adeel.asghar@…>
Children:
cb670ccb
Parents:
d3536cf8
Message:

Use newCref

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Modeling/Commands.cpp

    rbcd47c5a rf3ac237  
    16271627  // load the new snapshot
    16281628  if (mDoSnapShot) {
    1629     QString newCref;
    1630     OMSProxy::instance()->importSnapshot(mModelName, mNewSnapshot, &newCref);
     1629    OMSProxy::instance()->importSnapshot(mModelName, mNewSnapshot, &mModelName);
    16311630  }
    16321631  // reload/redraw the OMSimulator model
     
    16541653  // load the old snapshot
    16551654  if (mDoSnapShot) {
    1656     QString newCref;
    1657     OMSProxy::instance()->importSnapshot(mModelName, mOldSnapshot, &newCref);
     1655    OMSProxy::instance()->importSnapshot(mModelName, mOldSnapshot, &mModelName);
    16581656  }
    16591657  MainWindow::instance()->getLibraryWidget()->getLibraryTreeModel()->reLoadOMSimulatorModel(mModelName, mEditedCref, mOldSnapshot, mNewEditedCref, mOldEditedCref);
Note: See TracChangeset for help on using the changeset viewer.