[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/dolphin/src
From: Peter Penz <peter.penz19 () gmail ! com>
Date: 2010-11-11 17:43:32
Message-ID: 20101111174332.48CC7AC8A1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1195652 by ppenz:
Currently the Filter Panel does only work with enabled Nepomuk. Don't show it when Nepomuk is disabled.
M +6 -0 dolphinmainwindow.cpp
--- trunk/KDE/kdebase/apps/dolphin/src/dolphinmainwindow.cpp #1195651:1195652
@@ -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::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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic