summarylogtreecommitdiffstats
path: root/quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch
diff options
context:
space:
mode:
Diffstat (limited to 'quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch')
-rw-r--r--quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch b/quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch
new file mode 100644
index 00000000000..1a22d40b235
--- /dev/null
+++ b/quickviewer-1.1.8-fix-nonwindows-filename-comparator.patch
@@ -0,0 +1,11 @@
+--- quickviewer/QuickViewer/src/models/volumemanager.cpp.orig 2019-02-22 03:48:52.047947231 -0800
++++ quickviewer/QuickViewer/src/models/volumemanager.cpp 2019-02-22 04:50:15.231151952 -0800
+@@ -71,7 +71,7 @@ static bool fileNameDescendingLessThan(c
+
+ static bool fileNameDescendingLessThan(const QvImageMetadata& m1, const QvImageMetadata& m2)
+ {
+- return s1 > s2;
++ return m1.filename().localeAwareCompare(m2.filename()) > 0;
+ }
+
+ #endif