summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-02-18 11:43:14 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-02-18 11:43:14 +0100
commit3515fe8b970bd7cd849ea44e24bc01331e894314 (patch)
tree9384c61486ca0811c1542b4540ea180cb1e54af2 /plugingui
parent8a04ec4b278b8d2379673e038c4bb072432e261b (diff)
Remove double-triggered filebrowser notifier (fix crash on midimap load after drumkit load).
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/drumkitframecontent.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugingui/drumkitframecontent.cc b/plugingui/drumkitframecontent.cc
index d58f7b4..46ea67c 100644
--- a/plugingui/drumkitframecontent.cc
+++ b/plugingui/drumkitframecontent.cc
@@ -159,6 +159,8 @@ void DrumkitframeContent::kitBrowseClick()
}
file_browser.setPath(path);
+ file_browser.fileSelectNotifier.disconnect(this);
+
CONNECT(&file_browser, fileSelectNotifier,
this, &DrumkitframeContent::selectKitFile);
file_browser.show();
@@ -178,6 +180,7 @@ void DrumkitframeContent::midimapBrowseClick()
}
file_browser.setPath(path);
+ file_browser.fileSelectNotifier.disconnect(this);
CONNECT(&file_browser, fileSelectNotifier,
this, &DrumkitframeContent::selectMapFile);
file_browser.show();