From 3515fe8b970bd7cd849ea44e24bc01331e894314 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 18 Feb 2018 11:43:14 +0100 Subject: Remove double-triggered filebrowser notifier (fix crash on midimap load after drumkit load). --- plugingui/drumkitframecontent.cc | 3 +++ 1 file changed, 3 insertions(+) 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(); -- cgit v1.2.3