summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-02 18:47:28 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 21:02:16 -0400
commit42fd0183fa7950e57a74e0b8b12fa14edea21af8 (patch)
treeef0daf5f77118e3b9c4375cde54d7cbca0cda527 /src/gui
parent9cc75b8ba7f9e0c32edbbfc9871fc0666e1e327f (diff)
downloadingen-42fd0183fa7950e57a74e0b8b12fa14edea21af8.tar.gz
ingen-42fd0183fa7950e57a74e0b8b12fa14edea21af8.tar.bz2
ingen-42fd0183fa7950e57a74e0b8b12fa14edea21af8.zip
Fix display of initial port values
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/NodeModule.cpp6
-rw-r--r--src/gui/Port.cpp4
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp
index 746083fb..f368d15f 100644
--- a/src/gui/NodeModule.cpp
+++ b/src/gui/NodeModule.cpp
@@ -1,6 +1,6 @@
/*
This file is part of Ingen.
- Copyright 2007-2015 David Robillard <http://drobilla.net/>
+ Copyright 2007-2016 David Robillard <http://drobilla.net/>
Ingen is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
@@ -81,6 +81,10 @@ NodeModule::NodeModule(GraphCanvas& canvas,
plugin->signal_changed().connect(
sigc::mem_fun(this, &NodeModule::plugin_changed));
}
+
+ for (const auto& p : block->properties()) {
+ property_changed(p.first, p.second);
+ }
}
NodeModule::~NodeModule()
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index c643b379..f9a04016 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -98,6 +98,10 @@ Port::Port(App& app,
model()->has_property(_app.uris().atom_bufferType,
_app.uris().atom_Sequence));
+ for (const auto& p : pm->properties()) {
+ property_changed(p.first, p.second);
+ }
+
update_metadata();
value_changed(pm->value());
}