13
0

Fix crash for external windows

eg. LV2 externalUI windows are not managed by ardour; Ardour cannot
intercept mapped() or delete_event() signals and hence also not
create a visibility-tracker.

First call to WindowProxy::toggle() creates the window, and the 2nd call
crashed since 6ca8ec5141, due to missing vistracker.

e.g. externalUI plugin windows, the processor-box uses WindowProxy
for all plugin-UIs incl. externalUIs.
This commit is contained in:
Robin Gareus 2018-12-20 19:41:57 +01:00
parent 9594e12c52
commit 58db958839
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -145,7 +145,11 @@ WindowProxy::toggle()
save_pos_and_size();
}
vistracker->cycle_visibility ();
if (vistracker) {
vistracker->cycle_visibility ();
} else {
_window->present ();
}
if (_window->is_mapped()) {
if (_width != -1 && _height != -1) {