diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-03-14 15:52:37 +0100 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-03-14 15:52:37 +0100 |
commit | a2619f5a78f4a4843d150b36c78e2ba4e8f5f3da (patch) | |
tree | d8b5b6d44c872a8e3c906e79a149e9bd249b4651 /src | |
parent | 99a21cf00a603dffa2ebdb5aba536e9a4fbe10a3 (diff) |
Sending message to ui on configread.
Diffstat (limited to 'src')
-rw-r--r-- | src/drumgizmo.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc index 279b0b7..6f0a2c5 100644 --- a/src/drumgizmo.cc +++ b/src/drumgizmo.cc @@ -75,10 +75,10 @@ bool DrumGizmo::loadkit(std::string file) return false; } - loader.metadata = parser.getMetaData(); + kit.metadata = parser.getMetaData(); DrumkitInfoMessage *msg = new DrumkitInfoMessage(); - msg->metadata = loader.metadata; + msg->metadata = kit.metadata; msghandler.sendMessage(MSGRCV_UI, msg); loader.loadKit(&kit); @@ -581,6 +581,10 @@ bool DrumGizmo::setConfigString(std::string cfg) msghandler.sendMessage(MSGRCV_ENGINE, msg); } + DrumkitInfoMessage *msg = new DrumkitInfoMessage(); + msg->metadata = kit.metadata; + msghandler.sendMessage(MSGRCV_UI, msg); + return true; } |