Make ".." always appear even if dir is unlistable (likely lacking permissions), closes #1938
(cherry picked from commit adc13e9027
)
This commit is contained in:
parent
18cb1f8e44
commit
beb2176399
|
@ -341,6 +341,11 @@ void FileDialog::update_file_list() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dirs.find("..")==NULL) {
|
||||||
|
//may happen if lacking permissions
|
||||||
|
dirs.push_back("..");
|
||||||
|
}
|
||||||
|
|
||||||
dirs.sort_custom<NoCaseComparator>();
|
dirs.sort_custom<NoCaseComparator>();
|
||||||
files.sort_custom<NoCaseComparator>();
|
files.sort_custom<NoCaseComparator>();
|
||||||
|
|
||||||
|
|
|
@ -509,6 +509,11 @@ void EditorFileDialog::update_file_list() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dirs.find("..")==NULL) {
|
||||||
|
//may happen if lacking permissions
|
||||||
|
dirs.push_back("..");
|
||||||
|
}
|
||||||
|
|
||||||
dirs.sort_custom<NoCaseComparator>();
|
dirs.sort_custom<NoCaseComparator>();
|
||||||
files.sort_custom<NoCaseComparator>();
|
files.sort_custom<NoCaseComparator>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue