summaryrefslogtreecommitdiff
path: root/gtk2_ardour/window_proxy.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-18 03:17:07 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-18 03:17:07 +0000
commitf9d0879e868cfab2e8ebd25803bdfa14a3f70426 (patch)
tree7170b4c470d651f57e2a5e842fef60ede4847e5b /gtk2_ardour/window_proxy.cc
parent0d34f2487d8b405dd0f2117092e091f49e94447a (diff)
Plugin UI state should of course be saved per-session rather than globally.
git-svn-id: svn://localhost/ardour2/branches/3.0@7646 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/window_proxy.cc')
-rwxr-xr-xgtk2_ardour/window_proxy.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/window_proxy.cc b/gtk2_ardour/window_proxy.cc
index 28a90215af..b6f7508ad2 100755
--- a/gtk2_ardour/window_proxy.cc
+++ b/gtk2_ardour/window_proxy.cc
@@ -35,6 +35,10 @@ WindowProxyBase::WindowProxyBase (string const & name, XMLNode const * node)
, _width (-1)
, _height (-1)
{
+ if (!node) {
+ return;
+ }
+
XMLNodeList children = node->children ();
XMLNodeList::const_iterator i = children.begin ();