From 550352c0b6b7fdafe96b30e1819c382a55b2c23e Mon Sep 17 00:00:00 2001 From: mfranz Date: Fri, 24 Jun 2005 14:07:15 +0000 Subject: [PATCH] keep panel and gui bindings nicely separated; useful for debugging, especially now that the property path is shown in nasal error messages --- src/Cockpit/panel_io.cxx | 2 +- src/GUI/dialog.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index b4185ddbb..978aac540 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -182,7 +182,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale) FGPanelAction * action = new FGPanelAction(button, x, y, w, h, repeatable); vectorbindings = node->getChildren("binding"); - SGPropertyNode * dest = fgGetNode("/sim/bindings", true); + SGPropertyNode * dest = fgGetNode("/sim/bindings/panel", true); SGPropertyNode *binding; unsigned int i, j; diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 2763d29f8..47657f3d1 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -610,7 +610,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props) _liveObjects.push_back(po); } - SGPropertyNode * dest = fgGetNode("/sim/bindings", true); + SGPropertyNode * dest = fgGetNode("/sim/bindings/gui", true); vector bindings = props->getChildren("binding"); if (bindings.size() > 0) { GUIInfo * info = new GUIInfo(this); -- 2.39.5