]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix build: Only compile code using Nepomuk #ifdef HAVE_NEPOMUK.
authorAndreas Hartmetz <ahartmetz@gmail.com>
Wed, 11 May 2011 16:47:44 +0000 (18:47 +0200)
committerAndreas Hartmetz <ahartmetz@gmail.com>
Wed, 11 May 2011 16:47:44 +0000 (18:47 +0200)
Actually HAVE_NEPOMUK should be defined here, but it isn't. This seems
to be some bug in the buildsystem.

CCMAIL: peter.penz19@gmail.com

src/search/dolphinsearchbox.cpp

index 3a6120d413eea9f5c7f1fe37042c87ce8f93b532..c4cc2cfc37fb91a2d6de7b96973781f25ddd7b36 100644 (file)
@@ -404,9 +404,13 @@ KUrl DolphinSearchBox::nepomukUrlForSearching() const
 
 void DolphinSearchBox::applyReadOnlyState()
 {
+#ifdef HAVE_NEPOMUK
     if (m_readOnly) {
         m_searchLabel->setText(Nepomuk::Query::Query::titleFromQueryUrl(m_readOnlyQuery));
     } else {
+#else
+    {
+#endif
         m_searchLabel->setText(i18nc("@label:textbox", "Find:"));
     }