summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp4
-rw-r--r--src/PatchageCanvas.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 13edebe..12f4344 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -533,8 +533,8 @@ Patchage::save_session(bool close)
for (FlowCanvas::Canvas::Connections::const_iterator c = _canvas->connections().begin();
c != _canvas->connections().end(); ++c) {
- PatchagePort* src = dynamic_cast<PatchagePort*>((*c)->source());
- PatchagePort* dst = dynamic_cast<PatchagePort*>((*c)->dest());
+ PatchagePort* src = dynamic_cast<PatchagePort*>((*c)->get_tail());
+ PatchagePort* dst = dynamic_cast<PatchagePort*>((*c)->get_head());
if (!src || !dst || src->type() == ALSA_MIDI || dst->type() == ALSA_MIDI) {
continue;
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index ef55f87..acd2b74 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -267,7 +267,7 @@ PatchageCanvas::on_connection_event(FlowCanvas::Connection* c, GdkEvent* ev)
select_connection(c);
return true;
case 2:
- disconnect(c->source(), c->dest());
+ disconnect(c->get_tail(), c->get_head());
return true;
}
}
@@ -282,7 +282,7 @@ PatchageCanvas::on_event(GdkEvent* ev)
clear_selection();
for (Connections::const_iterator i = cs.begin(); i != cs.end(); ++i) {
- disconnect((*i)->source(), (*i)->dest());
+ disconnect((*i)->get_tail(), (*i)->get_head());
}
}