mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
ac22d744ba
commit
c108a62d4f
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue