mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
classes derived from WindowProxy are responsible for their own window creation in ::set_state().
Fixes a crash reported by A.Prokoudine when opening a session with visible plugin GUIs
This commit is contained in:
parent
88fb3c5ac9
commit
e46b518319
1 changed files with 2 additions and 8 deletions
|
|
@ -97,6 +97,8 @@ WindowProxy::set_state (const XMLNode& node, int /* version */)
|
||||||
|
|
||||||
XMLProperty* prop;
|
XMLProperty* prop;
|
||||||
|
|
||||||
|
std::cerr << " PB setting state\n";
|
||||||
|
|
||||||
if ((prop = (*i)->property (X_("visible"))) != 0) {
|
if ((prop = (*i)->property (X_("visible"))) != 0) {
|
||||||
_visible = PBD::string_is_affirmative (prop->value ());
|
_visible = PBD::string_is_affirmative (prop->value ());
|
||||||
}
|
}
|
||||||
|
|
@ -115,14 +117,6 @@ WindowProxy::set_state (const XMLNode& node, int /* version */)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the window is marked visible but doesn't yet exist, create it */
|
|
||||||
|
|
||||||
if (_visible) {
|
|
||||||
if (!_window) {
|
|
||||||
_window = get (true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_window) {
|
if (_window) {
|
||||||
setup ();
|
setup ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue