From: Peter Penz Date: Thu, 27 Sep 2007 06:25:10 +0000 (+0000) Subject: use the proxy model categorization state to check whether it has changed, not the... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c108a62d4ffac540979c27f18ba3228909e5a4fd use the proxy model categorization state to check whether it has changed, not the stored categorization state... svn path=/trunk/KDE/kdebase/apps/; revision=717555 --- diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 6cf2c1a82..edecf199a 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -175,7 +175,7 @@ void DolphinView::setMode(Mode mode) // capabilities. m_storedCategorizedSorting = props.categorizedSorting(); const bool categorized = m_storedCategorizedSorting && supportsCategorizedSorting(); - if (categorized != categorizedSorting()) { + if (categorized != m_proxyModel->isCategorizedModel()) { m_proxyModel->setCategorizedModel(categorized); m_proxyModel->sort(m_proxyModel->sortColumn(), m_proxyModel->sortOrder()); emit categorizedSortingChanged(); @@ -630,7 +630,7 @@ void DolphinView::applyViewProperties(const KUrl& url) m_storedCategorizedSorting = props.categorizedSorting(); const bool categorized = m_storedCategorizedSorting && supportsCategorizedSorting(); - if (categorized != categorizedSorting()) { + if (categorized != m_proxyModel->isCategorizedModel()) { m_proxyModel->setCategorizedModel(categorized); m_proxyModel->sort(m_proxyModel->sortColumn(), m_proxyModel->sortOrder()); emit categorizedSortingChanged();