Skip to content

Commit

Permalink
ticket:5533 Do not apply the protection annotation on .mo file
Browse files Browse the repository at this point in the history
Unless specified in the settings.
  • Loading branch information
adeas31 committed Aug 5, 2019
1 parent 5642254 commit 88852a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OMEdit/OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -4170,10 +4170,10 @@ void LibraryWidget::openModelicaFile(QString fileName, QString encoding, bool sh
MainWindow::instance()->getProgressBar()->setRange(0, classesList.size());
MainWindow::instance()->showProgressBar();
}
bool activateAccessAnnotations = true;
bool activateAccessAnnotations = false;
QComboBox *pActivateAccessAnnotationsComboBox = OptionsDialog::instance()->getGeneralSettingsPage()->getActivateAccessAnnotationsComboBox();
if (pActivateAccessAnnotationsComboBox->itemData(pActivateAccessAnnotationsComboBox->currentIndex()) == GeneralSettingsPage::Never) {
activateAccessAnnotations = false;
if (pActivateAccessAnnotationsComboBox->itemData(pActivateAccessAnnotationsComboBox->currentIndex()) == GeneralSettingsPage::Always) {
activateAccessAnnotations = true;
}
foreach (QString model, classesList) {
mpLibraryTreeModel->createLibraryTreeItem(model, mpLibraryTreeModel->getRootLibraryTreeItem(), true, false, true, -1, activateAccessAnnotations);
Expand Down

0 comments on commit 88852a1

Please sign in to comment.