Skip to content

Commit

Permalink
- fix some warnings
Browse files Browse the repository at this point in the history
- spellfix


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25605 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Henning Kiel committed Apr 17, 2015
1 parent 7133aab commit 4c48b7f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -2330,10 +2330,9 @@ void ModelWidget::getModelConnections(QString className, bool inheritedCycle)
// get start and end connectors
Component *pStartConnectorComponent = 0;
Component *pEndConnectorComponent = 0;
bool isExpandableConnector = false;
if (pStartComponent) {
pMainWindow->getOMCProxy()->sendCommand("getClassRestriction(" + pStartComponent->getClassName() + ")");
isExpandableConnector = pMainWindow->getOMCProxy()->getResult().toLower().contains("expandable connector");
bool isExpandableConnector = pMainWindow->getOMCProxy()->getResult().toLower().contains("expandable connector");
// if a component type is connector then we only get one item in startComponentList
// check the startcomponentlist
if (startComponentList.size() < 2 || isExpandableConnector) {
Expand All @@ -2352,9 +2351,8 @@ void ModelWidget::getModelConnections(QString className, bool inheritedCycle)
if (pEndComponent) {
// if a component type is connector then we only get one item in endComponentList
// check the endcomponentlist
isExpandableConnector = false;
pMainWindow->getOMCProxy()->sendCommand("getClassRestriction(" + pEndComponent->getClassName() + ")");
isExpandableConnector = pMainWindow->getOMCProxy()->getResult().toLower().contains("expandable connector");
bool isExpandableConnector = pMainWindow->getOMCProxy()->getResult().toLower().contains("expandable connector");
if (endComponentList.size() < 2 || isExpandableConnector) {
pEndConnectorComponent = pEndComponent;
} else if (!pMainWindow->getOMCProxy()->existClass(pEndComponent->getClassName())) {
Expand Down

0 comments on commit 4c48b7f

Please sign in to comment.