summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-04-28 20:30:25 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-04-28 20:30:25 +0200
commit0eece5d7d71181ddf99ab1bea785a6aa4ceee81c (patch)
tree6b527d0436d06636766386c41fe04932daba81c9
parentcdbb903edbbe71d3e7a8db61728164b88e8e9c45 (diff)
Fix gui crash on window close. Make drumkit and midimap file and status reshow in the gui.
-rw-r--r--src/drumgizmo.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index 943e852..72b3811 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -210,7 +210,8 @@ void DrumGizmo::handleEngineEvents()
break;
case Message::EngineSettingsMessage:
{
- DEBUG(msg, "got EngineSettingsMessage message.");
+ DEBUG(msg, "--------------- Send: EngineSettingsMessage --------------- \n");
+
bool mmap_loaded = false;
std::string mmapfile;
if(ie->isMidiEngine()) {
@@ -224,7 +225,7 @@ void DrumGizmo::handleEngineEvents()
msg->midimapfile = mmapfile;
msg->midimap_loaded = mmap_loaded;
msg->drumkitfile = drumkitfile();
- msg->drumkit_loaded = true;
+ msg->drumkit_loaded = loader.isDone();
msg->enable_velocity_modifier = Conf::enable_velocity_modifier;
msg->velocity_modifier_falloff = Conf::velocity_modifier_falloff;
msg->velocity_modifier_weight = Conf::velocity_modifier_weight;