]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/property_list.cxx
fix a typo
[flightgear.git] / src / GUI / property_list.cxx
index ae709d290c7ca25fd1c1528070dd0c6f2769fab7..647d8035f4f0db7e33c4287e72092735a1cf345b 100644 (file)
@@ -31,7 +31,7 @@
 #include <iomanip>
 #include <iostream>
 #include <string>
-SG_USING_STD(string);
+using std::string;
 using std::cout;
 
 typedef string stdString;      // puObject has a "string" member
@@ -194,8 +194,10 @@ void PropertyList::handle_select(puObject *list_box)
         const char *src = prop_list->_entries[selected];
 
         if (prop_list->_dot_files && (selected < 2)) {
-            if (!strcmp(src, ".")) {
-                if (mod_ctrl)
+            if (src[0] == '.' && (src[1] == '\0' || src[1] == ' ')) {
+                if (mod_ctrl && mod_shift)
+                    prop_list->_curr->fireValueChanged();
+                else if (mod_ctrl)
                     prop_list->toggleVerbosity();
                 else if (mod_shift)
                     dumpProperties(prop_list->_curr);
@@ -260,8 +262,8 @@ void PropertyList::update(bool restore_pos)
         _num_entries += 2;    // for . and ..
         _entries = new char*[_num_entries + 1];
 
-        _entries[0] = new char[2];
-        strcpy(_entries[0], ".");
+        _entries[0] = new char[16];
+        strcpy(_entries[0], _verbose ? ".     [verbose]" : ".");
 
         _entries[1] = new char[3];
         strcpy(_entries[1], "..");