From 9c2a517cb0a71dc2cfce07b2a7a19a0e56848c48 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 22 Sep 2016 16:25:17 -0500 Subject: [PATCH] don't get into nested run loops if quantize is reinvoked (e.g control surface) while already in progress --- gtk2_ardour/editor_ops.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 079af7de59..004aff4f08 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -5374,6 +5374,11 @@ Editor::quantize_regions (const RegionSelection& rs) quantize_dialog = new QuantizeDialog (*this); } + if (quantize_dialog->is_mapped()) { + /* in progress already */ + return; + } + quantize_dialog->present (); const int r = quantize_dialog->run (); quantize_dialog->hide ();