Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Check if class is partial.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23850 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 18, 2014
1 parent ee9b2ea commit 4c37e90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Modeling/LibraryTreeWidget.cpp
Expand Up @@ -1127,6 +1127,10 @@ LibraryTreeNode* LibraryTreeWidget::findParentLibraryTreeNodeSavedInSameFile(Lib
bool LibraryTreeWidget::isSimulationAllowed(LibraryTreeNode *pLibraryTreeNode)
{
if (pLibraryTreeNode) {
// if the class is partial then return false.
if (mpMainWindow->getOMCProxy()->isPartial(pLibraryTreeNode->getNameStructure())) {
return false;
}
switch (pLibraryTreeNode->getModelicaType()) {
case StringHandler::Model:
case StringHandler::Class:
Expand Down

0 comments on commit 4c37e90

Please sign in to comment.