GUI: Make sort case-insensitive
Jeffrey Pfau jeffrey@endrift.com
Mon, 07 Sep 2015 17:09:29 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/util/gui/file-select.c
→
src/util/gui/file-select.c
@@ -46,7 +46,7 @@ // TODO: What if there was a trailing slash?
} static int _strpcmp(const void* a, const void* b) { - return strcmp(((const struct GUIMenuItem*) a)->title, ((const struct GUIMenuItem*) b)->title); + return strcasecmp(((const struct GUIMenuItem*) a)->title, ((const struct GUIMenuItem*) b)->title); } static bool _refreshDirectory(struct GUIParams* params, const char* currentPath, struct GUIMenuItemList* currentFiles, bool (*filter)(struct VFile*)) {