use FileEntry::isDir field (my bad)
This commit is contained in:
parent
d70fc3c5c2
commit
785f32acb3
1 changed files with 1 additions and 2 deletions
|
|
@ -620,9 +620,8 @@ void FurnaceFilePicker::updateEntryName() {
|
|||
entryName=_("<multiple files selected>");
|
||||
} else if (chosenEntries.size() == 1) {
|
||||
FileEntry* entry=chosenEntries[0];
|
||||
bool isDir=entry->type==FP_TYPE_DIR;
|
||||
// only change the entry if the selection is valid
|
||||
if ((isDir && dirSelect) || (!isDir && !dirSelect)) {
|
||||
if ((entry->isDir && dirSelect) || (!entry->isDir && !dirSelect)) {
|
||||
entryName=entry->name;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue