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:
parent
9594e12c52
commit
58db958839
@ -145,7 +145,11 @@ WindowProxy::toggle()
|
|||||||
save_pos_and_size();
|
save_pos_and_size();
|
||||||
}
|
}
|
||||||
|
|
||||||
vistracker->cycle_visibility ();
|
if (vistracker) {
|
||||||
|
vistracker->cycle_visibility ();
|
||||||
|
} else {
|
||||||
|
_window->present ();
|
||||||
|
}
|
||||||
|
|
||||||
if (_window->is_mapped()) {
|
if (_window->is_mapped()) {
|
||||||
if (_width != -1 && _height != -1) {
|
if (_width != -1 && _height != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user