Skip to content

Commit

Permalink
Disable show grid lines button for system libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Oct 15, 2015
1 parent 8e55828 commit 62889e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -2380,6 +2380,7 @@ LineAnnotation* ModelWidget::createInheritedConnection(LineAnnotation *pConnecti
} else {
pEndComponent->addConnectionDetails(pInheritedConnectionLineAnnotation);
}
return pInheritedConnectionLineAnnotation;
}

/*!
Expand Down Expand Up @@ -3790,7 +3791,7 @@ void ModelWidgetContainer::currentModelWidgetChanged(QMdiSubWindow *pSubWindow)
// getMainWindow()->getSaveAsAction()->setEnabled(enabled);
// getMainWindow()->getSaveAllAction()->setEnabled(enabled);
getMainWindow()->getSaveTotalModelAction()->setEnabled(enabled && modelica);
getMainWindow()->getShowGridLinesAction()->setEnabled(enabled);
getMainWindow()->getShowGridLinesAction()->setEnabled(enabled && !pModelWidget->getLibraryTreeItem()->isSystemLibrary());
getMainWindow()->getResetZoomAction()->setEnabled(enabled && modelica);
getMainWindow()->getZoomInAction()->setEnabled(enabled && modelica);
getMainWindow()->getZoomOutAction()->setEnabled(enabled && modelica);
Expand Down

0 comments on commit 62889e6

Please sign in to comment.