Fix build-issue if no Nepomuk is available

svn path=/trunk/KDE/kdebase/apps/; revision=1196022
This commit is contained in:
Peter Penz 2010-11-12 12:34:51 +00:00
parent e251393981
commit 4422dfd5fa

View file

@ -1217,6 +1217,7 @@ void DolphinMainWindow::slotWriteStateChanged(bool isFolderWritable)
void DolphinMainWindow::slotSearchModeChanged(bool enabled)
{
#ifdef HAVE_NEPOMUK
if (Nepomuk::ResourceManager::instance()->init() != 0) {
// Currently the Filter Panel only works with Nepomuk enabled
return;
@ -1238,6 +1239,9 @@ void DolphinMainWindow::slotSearchModeChanged(bool enabled)
}
m_filterDockIsTemporaryVisible = false;
}
#else
Q_UNUSED(enabled);
#endif
}
void DolphinMainWindow::openContextMenu(const KFileItem& item,