1
0
Fork 0

show verbose mode (see $FG_ROOT/Docs/README.gui -> property-list)

This commit is contained in:
mfranz 2008-12-03 20:18:15 +00:00
parent f3b110e565
commit 7f2f1e39e3

View file

@ -194,7 +194,7 @@ void PropertyList::handle_select(puObject *list_box)
const char *src = prop_list->_entries[selected]; const char *src = prop_list->_entries[selected];
if (prop_list->_dot_files && (selected < 2)) { if (prop_list->_dot_files && (selected < 2)) {
if (!strcmp(src, ".")) { if (src[0] == '.' && (src[1] == '\0' || src[1] == ' ')) {
if (mod_ctrl) if (mod_ctrl)
prop_list->toggleVerbosity(); prop_list->toggleVerbosity();
else if (mod_shift) else if (mod_shift)
@ -260,8 +260,8 @@ void PropertyList::update(bool restore_pos)
_num_entries += 2; // for . and .. _num_entries += 2; // for . and ..
_entries = new char*[_num_entries + 1]; _entries = new char*[_num_entries + 1];
_entries[0] = new char[2]; _entries[0] = new char[16];
strcpy(_entries[0], "."); strcpy(_entries[0], _verbose ? ". [verbose]" : ".");
_entries[1] = new char[3]; _entries[1] = new char[3];
strcpy(_entries[1], ".."); strcpy(_entries[1], "..");