diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-07-15 14:08:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:22 -0500 |
commit | e46b5183199dbe00c63f79332a2e04e516cb646f (patch) | |
tree | f555179e7a80339b47b8cd25c69c08934676c37a /libs/gtkmm2ext/window_proxy.cc | |
parent | 88fb3c5ac9a99ced3a65659abeab003eb9088a25 (diff) |
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
Diffstat (limited to 'libs/gtkmm2ext/window_proxy.cc')
-rw-r--r-- | libs/gtkmm2ext/window_proxy.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libs/gtkmm2ext/window_proxy.cc b/libs/gtkmm2ext/window_proxy.cc index dd1d4c35bd..e18596dd9e 100644 --- a/libs/gtkmm2ext/window_proxy.cc +++ b/libs/gtkmm2ext/window_proxy.cc @@ -97,6 +97,8 @@ WindowProxy::set_state (const XMLNode& node, int /* version */) XMLProperty* prop; + std::cerr << " PB setting state\n"; + if ((prop = (*i)->property (X_("visible"))) != 0) { _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) { setup (); } |