Skip to content

Commit

Permalink
Fixed array connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Dec 1, 2015
1 parent c8c490f commit 1568d7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions OMEdit/OMEditGUI/Annotations/LineAnnotation.cpp
Expand Up @@ -864,10 +864,11 @@ void ConnectionArray::saveArrayIndex()
}
}
}
mpGraphicsView->addConnectionToClass(mpConnectionLineAnnotation);
mpConnectionLineAnnotation->setToolTip(QString("<b>connect</b>(%1, %2)").arg(startComponentName, endComponentName));
mpConnectionLineAnnotation->drawCornerItems();
mpConnectionLineAnnotation->setCornerItemsActiveOrPassive();
mpConnectionLineAnnotation->setStartComponentName(startComponentName);
mpConnectionLineAnnotation->setEndComponentName(endComponentName);
mpGraphicsView->getModelWidget()->getUndoStack()->push(new AddConnectionCommand(mpConnectionLineAnnotation, true));
mpGraphicsView->getModelWidget()->getLibraryTreeItem()->emitConnectionAdded(mpConnectionLineAnnotation);
mpGraphicsView->getModelWidget()->updateModelicaText();
accept();
}

Expand Down

0 comments on commit 1568d7a

Please sign in to comment.