Commit ea6891c3 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] right clicking on a network port has created a line which was not...

[FIX] right clicking on a network port has created a line which was not removed when releasing the mouse. fixed.
parent 58916329
......@@ -70,6 +70,11 @@ void WQtNetworkPort::paint( QPainter* painter, const QStyleOptionGraphicsItem* o
void WQtNetworkPort::mousePressEvent( QGraphicsSceneMouseEvent *mouseEvent )
{
if( mouseEvent->button() != Qt::LeftButton )
{
mouseEvent->ignore();
return;
}
QList<QGraphicsItem *> startItem = scene()->items( mouseEvent->scenePos() );
if( !startItem.isEmpty() )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment