diff options
| author | Peter Penz <[email protected]> | 2009-12-12 12:51:31 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-12-12 12:51:31 +0000 |
| commit | a14119587a1bb7cbf931d9c69ba4623f6fb2242b (patch) | |
| tree | 10ee96c31aab1c82b4e373cf0e44c3d23458be1e /src/viewproperties.cpp | |
| parent | 5e25098037571c8a43fd8c407c1758065e1a1548 (diff) | |
Removed enums SortByRating and SortByTags. They never have been activated yet because of performance issues...
svn path=/trunk/KDE/kdebase/apps/; revision=1061595
Diffstat (limited to 'src/viewproperties.cpp')
| -rw-r--r-- | src/viewproperties.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index c22b0adc1..60da2905d 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -33,8 +33,6 @@ #include <QFile> #include <QFileInfo> -bool ViewProperties::m_nepomukSupport = false; - #define FILE_NAME "/.directory" ViewProperties::ViewProperties(const KUrl& url) : @@ -162,15 +160,7 @@ void ViewProperties::setSorting(DolphinView::Sorting sorting) DolphinView::Sorting ViewProperties::sorting() const { - // If Nepomuk is not available, return SortByName as fallback if SortByRating - // or SortByTags is stored. - DolphinView::Sorting sorting = static_cast<DolphinView::Sorting>(m_node->sorting()); - const bool sortByName = !m_nepomukSupport && - ((sorting == DolphinView::SortByRating) || (sorting == DolphinView::SortByTags)); - if (sortByName) { - sorting = DolphinView::SortByName; - } - return sorting; + return static_cast<DolphinView::Sorting>(m_node->sorting()); } void ViewProperties::setSortOrder(Qt::SortOrder sortOrder) |
