summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-08 00:50:13 +0000
committerDavid Robillard <d@drobilla.net>2007-10-08 00:50:13 +0000
commita421a44310ee472fbee15f150d32b826a8371dbf (patch)
treed160bb1704a26524dee8746e3f7dd69494460cd6 /src/libs/gui/PatchWindow.cpp
parent19a9eb15d1c918b10fe169db1b8f4fd0c6ffe8fa (diff)
downloadingen-a421a44310ee472fbee15f150d32b826a8371dbf.tar.gz
ingen-a421a44310ee472fbee15f150d32b826a8371dbf.tar.bz2
ingen-a421a44310ee472fbee15f150d32b826a8371dbf.zip
Fix serialization/connection bugs resulting from refactoring.
git-svn-id: http://svn.drobilla.net/lad/ingen@842 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchWindow.cpp')
-rw-r--r--src/libs/gui/PatchWindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/gui/PatchWindow.cpp b/src/libs/gui/PatchWindow.cpp
index 6260221d..3566d83d 100644
--- a/src/libs/gui/PatchWindow.cpp
+++ b/src/libs/gui/PatchWindow.cpp
@@ -207,7 +207,7 @@ PatchWindow::set_patch(SharedPtr<PatchModel> patch, SharedPtr<PatchView> view)
for (PortModelList::const_iterator p = patch->ports().begin();
p != patch->ports().end(); ++p) {
- if ((*p)->is_control() && (*p)->is_input()) {
+ if ((*p)->type().is_control() && (*p)->is_input()) {
_menu_view_control_window->property_sensitive() = true;
break;
}
@@ -239,7 +239,7 @@ PatchWindow::set_patch(SharedPtr<PatchModel> patch, SharedPtr<PatchView> view)
void
PatchWindow::patch_port_added(SharedPtr<PortModel> port)
{
- if (port->is_control() && port->is_input()) {
+ if (port->type().is_control() && port->is_input()) {
_menu_view_control_window->property_sensitive() = true;
}
}
@@ -248,12 +248,12 @@ PatchWindow::patch_port_added(SharedPtr<PortModel> port)
void
PatchWindow::patch_port_removed(SharedPtr<PortModel> port)
{
- if (port->is_control() && port->is_input()) {
+ if (port->type().is_control() && port->is_input()) {
bool found_control = false;
for (PortModelList::const_iterator i = _patch->ports().begin(); i != _patch->ports().end(); ++i) {
- if ((*i)->is_control() && (*i)->is_input()) {
+ if ((*i)->type().is_control() && (*i)->is_input()) {
found_control = true;
break;
}