Skip to content

Instantly share code, notes, and snippets.

@FeepingCreature
Created August 2, 2016 09:33
Show Gist options
  • Save FeepingCreature/0c67fae1068f796871a18a2d3fdb6c5d to your computer and use it in GitHub Desktop.
Save FeepingCreature/0c67fae1068f796871a18a2d3fdb6c5d to your computer and use it in GitHub Desktop.
diff -urN kio-5.24.0-old/src/filewidgets/kdirsortfilterproxymodel.cpp kio-5.24.0-new/src/filewidgets/kdirsortfilterproxymodel.cpp
--- kio-5.24.0-old/src/filewidgets/kdirsortfilterproxymodel.cpp 2016-07-03 11:16:00.000000000 +0200
+++ kio-5.24.0-new/src/filewidgets/kdirsortfilterproxymodel.cpp 2016-08-02 11:32:18.221600249 +0200
@@ -76,6 +76,9 @@
{
KConfigGroup g(KSharedConfig::openConfig(), "KDE");
m_naturalSorting = g.readEntry("NaturalSorting", true);
+ if (m_naturalSorting) {
+ m_collator.setNumericMode(true);
+ }
}
KDirSortFilterProxyModel::KDirSortFilterProxyModel(QObject *parent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment