Merge pull request #1967 from axblk/fix/editor_fileselector

Fix editor file-selector
This commit is contained in:
oy 2019-01-11 08:38:40 +01:00 committed by GitHub
commit de4ffee556
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3031,7 +3031,7 @@ static int EditorListdirCallback(const char *pName, int IsDir, int StorageType,
}
if(str_comp(pName, ".") == 0
|| (str_comp(pName, "..") == 0 && (str_comp(pEditor->m_pFileDialogPath, "maps") == 0 || str_comp(pEditor->m_pFileDialogPath, "mapres") == 0))
|| (pExt && !IsDir && str_endswith(pName, pExt)))
|| (pExt && !IsDir && !str_endswith(pName, pExt)))
{
return 0;
}