diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-22 16:25:17 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-27 14:59:31 -0500 |
commit | 9c2a517cb0a71dc2cfce07b2a7a19a0e56848c48 (patch) | |
tree | 6b79a778f4421887d084ce4b306fb6409ce17c18 /gtk2_ardour | |
parent | 72e29358423980f0b6a6967eaca335e4240288e8 (diff) |
don't get into nested run loops if quantize is reinvoked (e.g control surface) while already in progress
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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 (); |