From 1629b2ee29aa67e6953021bfd1ae16087794ae4f Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 11 Nov 2010 17:43:32 +0000 Subject: [PATCH] Currently the Filter Panel does only work with enabled Nepomuk. Don't show it when Nepomuk is disabled. svn path=/trunk/KDE/kdebase/apps/; revision=1195652 --- src/dolphinmainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 6a94b1eed..86e8c8b9b 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -30,6 +30,7 @@ #include "mainwindowadaptor.h" #ifdef HAVE_NEPOMUK #include "panels/filter/filterpanel.h" + #include #endif #include "panels/folders/folderspanel.h" #include "panels/places/placespanel.h" @@ -1216,6 +1217,11 @@ void DolphinMainWindow::slotWriteStateChanged(bool isFolderWritable) void DolphinMainWindow::slotSearchModeChanged(bool enabled) { + if (Nepomuk::ResourceManager::instance()->init() != 0) { + // Currently the Filter Panel only works with Nepomuk enabled + return; + } + QDockWidget* filterDock = findChild("filterDock"); if ((filterDock == 0) || !filterDock->isEnabled()) { return; -- 2.47.3