diff options
author | David Robillard <d@drobilla.net> | 2008-08-15 03:30:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-15 03:30:10 +0000 |
commit | 2b189b5979fed3f52a1bea082201a892d00aa38c (patch) | |
tree | 5b14a1b91fc228fa1aaa711378804d0d4a6ced3d /src/libs/client/PortModel.cpp | |
parent | 25c796a6f64038d47140a2023f25cfbe1b2fdd37 (diff) | |
download | ingen-2b189b5979fed3f52a1bea082201a892d00aa38c.tar.gz ingen-2b189b5979fed3f52a1bea082201a892d00aa38c.tar.bz2 ingen-2b189b5979fed3f52a1bea082201a892d00aa38c.zip |
Make refresh more complete.
git-svn-id: http://svn.drobilla.net/lad/ingen@1389 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PortModel.cpp')
-rw-r--r-- | src/libs/client/PortModel.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libs/client/PortModel.cpp b/src/libs/client/PortModel.cpp index ecf1070b..fa3cb345 100644 --- a/src/libs/client/PortModel.cpp +++ b/src/libs/client/PortModel.cpp @@ -45,5 +45,18 @@ PortModel::is_toggle() const return (hint.is_valid() && hint.get_bool() > 0); } + +void +PortModel::set(SharedPtr<ObjectModel> model) +{ + SharedPtr<PortModel> port = PtrCast<PortModel>(model); + if (port) { + _current_val = port->_current_val; + signal_value_changed.emit(_current_val); + } + + ObjectModel::set(model); +} + } // namespace Client } // namespace Ingen |