summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drumgizmo.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 220f3e9..14a5516 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -72,9 +72,10 @@ bool DrumGizmo::loadkit(std::string file)
return false;
}
+ loader.metadata = parser.getMetaData();
+
DrumkitInfoMessage *msg = new DrumkitInfoMessage();
- MetaData metadata = parser.getMetaData();
- msg->metadata = metadata;
+ msg->metadata = loader.metadata;
msghandler.sendMessage(MSGRCV_UI, msg);
loader.loadKit(&kit);
@@ -142,6 +143,13 @@ void DrumGizmo::handleMessage(Message *msg)
msghandler.sendMessage(MSGRCV_UI, msg);
}
break;
+ case Message::DrumkitInfoMessage:
+ {
+ DrumkitInfoMessage *msg = new DrumkitInfoMessage();
+ msg->metadata = loader.metadata;
+ msghandler.sendMessage(MSGRC_UI, msg);
+ }
+ break;
case Message::ChangeSettingMessage:
{
ChangeSettingMessage *ch = (ChangeSettingMessage*)msg;