┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
authorAndreas Hartmetz <[email protected]>2011-05-11 18:47:44 +0200
committerAndreas Hartmetz <[email protected]>2011-05-11 18:47:44 +0200
commit01fc5c9cd87db2b880565514d53a9e78ebd9f090 (patch)
tree6415fd3661bc9637ea093f5f18e9ce91f8fd0836 /src/search/dolphinsearchbox.cpp
parent3b82962f49e2cd502655dd0d6fb9196ec2b0d6ff (diff)
Fix build: Only compile code using Nepomuk #ifdef HAVE_NEPOMUK.
Actually HAVE_NEPOMUK should be defined here, but it isn't. This seems to be some bug in the buildsystem. CCMAIL: [email protected]
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index 3a6120d41..c4cc2cfc3 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -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:"));
}