summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/webtab/webtab.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp
index 7a3213b0..070ffcaf 100644
--- a/src/webtab/webtab.cpp
+++ b/src/webtab/webtab.cpp
@@ -503,17 +503,21 @@ void WebTab::toggleInspector(bool on)
void WebTab::focusIn()
{
+#ifdef HAVE_KACTIVITIES
if (m_isPrivateBrowsing || !m_activityResourceInstance)
return;
m_activityResourceInstance->notifyFocusedIn();
+#endif
}
void WebTab::focusOut()
{
+#ifdef HAVE_KACTIVITIES
if (m_isPrivateBrowsing || !m_activityResourceInstance)
return;
m_activityResourceInstance->notifyFocusedOut();
+#endif
}