summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modinfodialog.cpp')
-rw-r--r--src/modinfodialog.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp
index 302175aa..fb093529 100644
--- a/src/modinfodialog.cpp
+++ b/src/modinfodialog.cpp
@@ -47,11 +47,24 @@ int naturalCompare(const QString& a, const QString& b)
return c;
}();
+
+ // todo: remove this once the fix is released
+ // see https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-81673
+ // and https://codereview.qt-project.org/c/qt/qtbase/+/287966/5/src/corelib/text/qcollator_win.cpp
+ if (!a.size()) {
+ return b.size() ? -1 : 0;
+ }
+ if (!b.size()) {
+ return +1;
+ }
+
+
return c.compare(a, b);
}
bool canPreviewFile(
- PluginContainer& pluginContainer, bool isArchive, const QString& filename)
+ const PluginContainer& pluginContainer,
+ bool isArchive, const QString& filename)
{
if (isArchive) {
return false;