summaryrefslogtreecommitdiffstats
path: root/plugin/cursornavigationattached.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cursornavigationattached.cpp')
-rw-r--r--plugin/cursornavigationattached.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugin/cursornavigationattached.cpp b/plugin/cursornavigationattached.cpp
index 1757d12..39a7888 100644
--- a/plugin/cursornavigationattached.cpp
+++ b/plugin/cursornavigationattached.cpp
@@ -176,11 +176,8 @@ void CursorNavigationAttached::moveLeft()
void CursorNavigationAttached::activate()
{
- if (m_cursorNavigation) {
- CursorNavigationAttached *item = m_cursorNavigation->m_currentItem;
- if (m_cursorNavigation->action(Activate) && item)
- item->activated();
- }
+ if (m_cursorNavigation && m_cursorNavigation->m_currentItem)
+ m_cursorNavigation->m_currentItem->activated();
}
void CursorNavigationAttached::moveForward()