]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.cpp
Whenever we are trying to sort, bypass lessThanGeneralPurpose when is not allowed...
[dolphin.git] / src / dolphinview.cpp
index a85e2db9ba482c08c420c825421f242ff954eabe..5f7fc11480b24117f0fb027641c0cebef931b4fe 100644 (file)
@@ -219,7 +219,12 @@ bool DolphinView::showHiddenFiles() const
 
 void DolphinView::setCategorizedSorting(bool categorized)
 {
-    if (!supportsCategorizedSorting() || (categorized == categorizedSorting())) {
+    if (categorized && !supportsCategorizedSorting()) {
+        setCategorizedSorting(false);
+        return;
+    }
+
+    if (categorized == categorizedSorting()) {
         return;
     }