mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +00:00
Fixed a bug with the file-selector in Windows where new files found in a directory were added at the end instead of sorted.
This commit is contained in:
parent
ab81d1eb7d
commit
b758b113e8
@ -632,12 +632,11 @@ int FileItem::compare(const FileItem& that) const
|
|||||||
else if (IS_FOLDER(&that))
|
else if (IS_FOLDER(&that))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#ifndef USE_PIDLS
|
|
||||||
{
|
{
|
||||||
int c1, c2;
|
int c1, c2;
|
||||||
int x1, x2;
|
int x1, x2;
|
||||||
char *t1, *t2;
|
char *t1, *t2;
|
||||||
const char* s1 = this->displayname.c_str(); // TODO fix this
|
const char* s1 = this->displayname.c_str();
|
||||||
const char* s2 = that.displayname.c_str();
|
const char* s2 = that.displayname.c_str();
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -670,7 +669,6 @@ int FileItem::compare(const FileItem& that) const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user