Skip to content

Commit

Permalink
Fixes #3714. Disable dragging components onto diagram layer of a pack…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
adeas31 committed Feb 24, 2016
1 parent 74b00c4 commit 58588db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -1338,7 +1338,8 @@ void GraphicsView::flipVertical()
void GraphicsView::dragMoveEvent(QDragMoveEvent *event)
{
// check if the class is system library
if (mpModelWidget->getLibraryTreeItem()->isSystemLibrary()) {
if (mpModelWidget->getLibraryTreeItem()->isSystemLibrary() ||
mpModelWidget->getLibraryTreeItem()->getRestriction() == StringHandler::Package) {
event->ignore();
return;
}
Expand Down

0 comments on commit 58588db

Please sign in to comment.