]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Fix build-issue if no Nepomuk is available
[dolphin.git] / src / dolphinmainwindow.cpp
index 86e8c8b9b5a1f37113b480e8e597f98dfdfeb2fd..3ee891f41c5b56c153edd4bc2f461377258328b3 100644 (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,