diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-10-22 15:28:13 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-10-22 15:28:13 +0200 |
commit | f880068c5ce939b78ffe777d5791266af6bc3929 (patch) | |
tree | 2022675ede1ac329813ee61dc74faab491bcaaec /src | |
parent | 5ee9eea8553e1757ae6a1cdaf294dd69ff05ae4d (diff) |
Added meta data request from gui.
Diffstat (limited to 'src')
-rw-r--r-- | src/drumgizmo.cc | 12 |
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; |