Skip to content

Commit

Permalink
[ui] Fix that ports would not grow anymore when dropping an address
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 3, 2024
1 parent f0266bd commit 22e513f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/plugins/score-lib-process/Process/Dataflow/PortItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <score/model/path/PathSerialization.hpp>
#include <score/selection/SelectionDispatcher.hpp>
#include <score/tools/Bind.hpp>
#include <State/MessageListSerialization.hpp>
#include <Device/Node/NodeListMimeSerialization.hpp>

#include <ossia/detail/algorithms.hpp>

Expand Down Expand Up @@ -674,6 +676,16 @@ void PortItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event)
update();
}
}
else
{
auto fmt = event->mimeData()->formats();
if(fmt.contains(score::mime::messagelist()) || fmt.contains(score::mime::nodelist()))
{
prepareGeometryChange();
m_diam = 12.;
update();
}
}
event->accept();
}

Expand Down

0 comments on commit 22e513f

Please sign in to comment.