From 2c689ca4f7c8dfe62c75dc3c93ac9df2f31c0a8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 25 Sep 2007 21:17:18 +0000 Subject: [PATCH] Whenever we are trying to sort, bypass lessThanGeneralPurpose when is not allowed to sort by categories. This will result as bad sortings on Detailed and in Column views. CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=717022 --- src/dolphinview.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index a85e2db9b..5f7fc1148 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -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; } -- 2.47.3