┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-11-11 17:43:32 +0000
committerPeter Penz <[email protected]>2010-11-11 17:43:32 +0000
commit1629b2ee29aa67e6953021bfd1ae16087794ae4f (patch)
tree3a03a6966be3f10dc77e4e458f45c1fe9f011e68
parenta5bac1d3abc58c2388375d44db7aab7fa009daed (diff)
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
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
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 <nepomuk/resourcemanager.h>
#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<QDockWidget*>("filterDock");
if ((filterDock == 0) || !filterDock->isEnabled()) {
return;