Changeset 03da1b5 in OpenModelica


Ignore:
Timestamp:
2021-01-19T19:33:11+01:00 (3 years ago)
Author:
GitHub <noreply@…>
Branches:
Added-citation-metadata, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
0d10b52a, 1ee46da, 305061b0, 6d345ce9, 9b9c57f, cae4ce05, d235bf2, e91dba5
Parents:
6d45949
git-author:
Adeel Asghar <adeel.asghar@…> (01/19/21 19:33:11)
git-committer:
GitHub <noreply@…> (01/19/21 19:33:11)
Message:

Let the user disable the new instantiation (#7089)

Fixes #6316
Since the new instantiation is on by default so set the flag -d=nonewInst if user wants to use the old instantiation.

Location:
OMEdit/OMEditLIB/Simulation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Simulation/SimulationDialog.cpp

    r0cd278d r03da1b5  
    11331133  if (!result) {
    11341134    //! @todo Remove this once new frontend is used as default and old frontend is removed.
    1135     bool newFrontendEnabled = false;
     1135    bool newFrontendEnabled = true;
    11361136    QList<QString> options = MainWindow::instance()->getOMCProxy()->getCommandLineOptions();
    11371137    foreach (QString option, options) {
    1138       if (option.contains("newInst")) {
    1139         newFrontendEnabled = true;
     1138      if (option.contains("nonewInst")) {
     1139        newFrontendEnabled = false;
    11401140        break;
    11411141      }
  • OMEdit/OMEditLIB/Simulation/TranslationFlagsWidget.cpp

    r43c8902 r03da1b5  
    194194  }
    195195  // enable new instantiation
    196   if (!mpOldInstantiationCheckBox->isChecked()) {
    197     debugFlags.append("newInst");
     196  if (mpOldInstantiationCheckBox->isChecked()) {
     197    debugFlags.append("nonewInst");
    198198  }
    199199
Note: See TracChangeset for help on using the changeset viewer.