I give up trying to fix this file dialog
for now
This commit is contained in:
parent
dc9f1112d1
commit
64f5343289
2 changed files with 7 additions and 4 deletions
10
extern/igfd/ImGuiFileDialog.cpp
vendored
10
extern/igfd/ImGuiFileDialog.cpp
vendored
|
|
@ -1287,8 +1287,6 @@ namespace IGFD
|
|||
std::sort(prFileList.begin(), prFileList.end(),
|
||||
[](const std::shared_ptr<FileInfos>& a, const std::shared_ptr<FileInfos>& b) -> bool
|
||||
{
|
||||
if (a==NULL || b==NULL)
|
||||
return false;
|
||||
if (!a.use_count() || !b.use_count())
|
||||
return false;
|
||||
|
||||
|
|
@ -1760,7 +1758,7 @@ namespace IGFD
|
|||
struct stat statInfos = {};
|
||||
char timebuf[100];
|
||||
int result = stat(fpn.c_str(), &statInfos);
|
||||
if (!result)
|
||||
if (result!=-1)
|
||||
{
|
||||
if (vInfos->fileType != 'd')
|
||||
{
|
||||
|
|
@ -1781,7 +1779,11 @@ namespace IGFD
|
|||
{
|
||||
vInfos->fileModifDate = std::string(timebuf, len);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
vInfos->fileSize=0;
|
||||
vInfos->formatedFileSize = prFormatFileSize(vInfos->fileSize);
|
||||
vInfos->fileModifDate="???";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue