Browse Source

Fix #1510

tags/v1.1.4
Andrew Belt 4 years ago
parent
commit
ff2ac805e2
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      src/app/PortWidget.cpp
  2. +3
    -0
      src/app/RackWidget.cpp

+ 3
- 0
src/app/PortWidget.cpp View File

@@ -139,6 +139,9 @@ void PortWidget::onDragEnd(const event::DragEnd& e) {
return;

CableWidget* cw = APP->scene->rack->releaseIncompleteCable();
if (!cw)
return;

if (cw->isComplete()) {
APP->scene->rack->addCable(cw);



+ 3
- 0
src/app/RackWidget.cpp View File

@@ -625,6 +625,9 @@ void RackWidget::setIncompleteCable(CableWidget* w) {
}

CableWidget* RackWidget::releaseIncompleteCable() {
if (!incompleteCable)
return NULL;

CableWidget* cw = incompleteCable;
cableContainer->removeChild(incompleteCable);
incompleteCable = NULL;


Loading…
Cancel
Save