From 66f4c8b3c82fc4dbe7dc6bc0b90005f009925973 Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Sat, 23 Jun 2007 13:12:21 +0000 Subject: Fix compile problems on systems that don't want nepomuk. eeek ! svn path=/trunk/KDE/kdebase/apps/; revision=679265 --- src/dolphinmainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 7fec6908d..bfde4da66 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -733,12 +733,16 @@ void DolphinMainWindow::sortByType() void DolphinMainWindow::sortByRating() { +#ifdef HAVE_NEPOMUK m_activeViewContainer->view()->setSorting(DolphinView::SortByRating); +#endif } void DolphinMainWindow::sortByTags() { +#ifdef HAVE_NEPOMUK m_activeViewContainer->view()->setSorting(DolphinView::SortByTags); +#endif } void DolphinMainWindow::toggleSortOrder() -- cgit v1.3