summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-16 07:23:32 +0000
committerDavid Robillard <d@drobilla.net>2012-08-16 07:23:32 +0000
commit3b26abedb5bc99eaa724f02aab6697d37acb039b (patch)
tree3b8138010ecbebeee4fcdb236a4e2347a30eeff3
parent643635c12d3cf6485c52c946c31f2f6a25f58452 (diff)
downloadingen-3b26abedb5bc99eaa724f02aab6697d37acb039b.tar.gz
ingen-3b26abedb5bc99eaa724f02aab6697d37acb039b.tar.bz2
ingen-3b26abedb5bc99eaa724f02aab6697d37acb039b.zip
Don't save the transient ingen:activity property in the model or on disk.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4711 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/client/ClientStore.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 61044708..690bec15 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -362,7 +362,13 @@ ClientStore::set_property(const Raul::URI& subject_uri,
}
SharedPtr<Resource> subject = _resource(subject_uri);
if (subject) {
- subject->set_property(predicate, value);
+ if (predicate == _uris.ingen_activity) {
+ /* Activity is transient, trigger any live actions (like GUI
+ blinkenlights) but do not store the property. */
+ subject->on_property(predicate, value);
+ } else {
+ subject->set_property(predicate, value);
+ }
} else {
SharedPtr<PluginModel> plugin = _plugin(subject_uri);
if (plugin)