diff --git a/qad_blockview/blockview.cpp b/qad_blockview/blockview.cpp index 3779281..8938512 100644 --- a/qad_blockview/blockview.cpp +++ b/qad_blockview/blockview.cpp @@ -223,15 +223,18 @@ bool BlockView::eventFilter(QObject * o, QEvent * e) { unmarkPins(true); reconnectAll(); tmp_bus.hide(); + tmp_bus.clear(); } if (new_branch && mm_cancel) { new_branch = false; tmp_bus.hide(); + tmp_bus.clear(); } if (moved && mm_cancel) { moved = false; restoreSelState(); tmp_bus.hide(); + tmp_bus.clear(); } if (mm_cancel) return true; mm_mods = me->modifiers(); @@ -481,6 +484,7 @@ bool BlockView::eventFilter(QObject * o, QEvent * e) { } unmarkPins(); tmp_bus.hide(); + tmp_bus.clear(); reconnectAll(); } clearBusStates(); @@ -1098,6 +1102,7 @@ bool BlockView::connectTmpToBus(BlockBusItem * bus) { bus->segments << QPair(lp + i, lp + i + 1); bus->segments << QPair(np, lp + tmp_bus.pol.size() - 1); bus->updateGeometry(); + tmp_bus.clear(); return true; } @@ -1256,6 +1261,7 @@ void BlockView::newBranchAccept(BlockBusItem * item) { item->updateGeometry(); emit actionEvent(BlockItemBase::BusAdd, QList() << item); emit connectionsChanged(); + tmp_bus.clear(); } @@ -1264,6 +1270,7 @@ void BlockView::newBranchCancel() { //qDebug() << "cancel"; new_branch = false; tmp_bus.hide(); + tmp_bus.clear(); }