diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index 86ce0d734..e38342fd7 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -479,9 +479,12 @@ void fgPropPicker::find_props () dflag[ pi ] = 1 ; files[ pi ] = new char[ strlen(line.c_str())+strlen(sindex)+4 ] ; strcpy ( files [ pi ], line.c_str() ) ; - strcat ( files [ pi ], "[" ) ; - strcat ( files [ pi ], sindex ) ; - strcat ( files [ pi ], "]/" ) ; + if ( node->getChild(name, 1) != 0 ) { + strcat ( files [ pi ], "[" ) ; + strcat ( files [ pi ], sindex ) ; + strcat ( files [ pi ], "]" ) ; + } + strcat ( files [ pi ], "/" ) ; values[ pi ] = new char[ 2 ] ; } else { dflag[ pi ] = 0 ;