From 0eece5d7d71181ddf99ab1bea785a6aa4ceee81c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 28 Apr 2013 20:30:25 +0200 Subject: Fix gui crash on window close. Make drumkit and midimap file and status reshow in the gui. --- src/drumgizmo.cc | 5 +++-- 1 file 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; -- cgit v1.2.3