diff --git a/src/Cockpit/panel_io.cxx b/src/Cockpit/panel_io.cxx index fe4ae4f02..40963f3d0 100644 --- a/src/Cockpit/panel_io.cxx +++ b/src/Cockpit/panel_io.cxx @@ -176,7 +176,7 @@ readAction (const SGPropertyNode * node, float w_scale, float h_scale) vectorbindings = node->getChildren("binding"); // button-less actions are fired initially, then fogotten - if (!node->hasValue("button")) { + if (!node->hasValue("w") || !node->hasValue("h")) { for (i = 0; i < bindings.size(); i++) { FGBinding b(bindings[i]); b.fire();