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
This commit is contained in:
Peter Penz 2007-09-27 06:25:10 +00:00
parent ac22d744ba
commit c108a62d4f

View file

@ -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();