diff options
| author | Rafael Fernández López <[email protected]> | 2007-09-25 21:54:26 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-09-25 21:54:26 +0000 |
| commit | ccea74a99aefcb2c69db4d8307a4bb8b398ed90d (patch) | |
| tree | 9fabdce892507e37607aca6d7eced8ada7476871 /src | |
| parent | ddcf546a4a6647a6b439d608814ececc5b8c11c9 (diff) | |
When the view is the Details or Columns one do not have in count lessThanGeneralPurpose. For that we need to force the proxy model to not to be categorized.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=717040
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinview.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index a85e2db9b..e790a0518 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -219,7 +219,17 @@ bool DolphinView::showHiddenFiles() const void DolphinView::setCategorizedSorting(bool categorized) { - if (!supportsCategorizedSorting() || (categorized == categorizedSorting())) { + if (categorized == categorizedSorting()) { + return; + } + + if (!categorized && !supportsCategorizedSorting()) + { + m_proxyModel->setCategorizedModel(categorized); + m_proxyModel->sort(m_proxyModel->sortColumn(), m_proxyModel->sortOrder()); + + emit categorizedSortingChanged(); + return; } @@ -803,11 +813,13 @@ void DolphinView::createView() case DetailsView: m_detailsView = new DolphinDetailsView(this, m_controller); view = m_detailsView; + setCategorizedSorting(false); break; case ColumnView: m_columnView = new DolphinColumnView(this, m_controller); view = m_columnView; + setCategorizedSorting(false); break; } |
