]> git.mxchange.org Git - flightgear.git/commitdiff
keep panel and gui bindings nicely separated; useful for debugging,
authormfranz <mfranz>
Fri, 24 Jun 2005 14:07:15 +0000 (14:07 +0000)
committermfranz <mfranz>
Fri, 24 Jun 2005 14:07:15 +0000 (14:07 +0000)
especially now that the property path is shown in nasal error messages

src/Cockpit/panel_io.cxx
src/GUI/dialog.cxx

index b4185ddbb291cbe53c5f70deae6ffc74a40fb5f9..978aac540057753635333c47548201c3ee54d019 100644 (file)
@@ -182,7 +182,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale)
   FGPanelAction * action = new FGPanelAction(button, x, y, w, h, repeatable);
 
   vector<SGPropertyNode_ptr>bindings = node->getChildren("binding");
-  SGPropertyNode * dest = fgGetNode("/sim/bindings", true);
+  SGPropertyNode * dest = fgGetNode("/sim/bindings/panel", true);
 
   SGPropertyNode *binding;
   unsigned int i, j;
index 2763d29f8d17a827496052f9e07d059ab9f84984..47657f3d12049ef23dcb6afb39c04d2a4c404e92 100644 (file)
@@ -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<SGPropertyNode_ptr> bindings = props->getChildren("binding");
     if (bindings.size() > 0) {
         GUIInfo * info = new GUIInfo(this);