File 0009-Check-for-children.patch of Package plasma5-desktop.openSUSE_13.2_Update

From c5f25d5918da70ab0341ff52bd266eb577830f48 Mon Sep 17 00:00:00 2001
From: Eike Hein <hein@kde.org>
Date: Wed, 1 Apr 2015 20:09:40 +0200
Subject: [PATCH 09/11] Check for children.

---
 applets/kicker/package/contents/ui/ItemListView.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/applets/kicker/package/contents/ui/ItemListView.qml b/applets/kicker/package/contents/ui/ItemListView.qml
index d335a048b9487ecbe60b011b80f65188445cf3bf..427fe3dcd8f4de82764c235734c7527434def041 100644
--- a/applets/kicker/package/contents/ui/ItemListView.qml
+++ b/applets/kicker/package/contents/ui/ItemListView.qml
@@ -199,7 +199,8 @@ FocusScope {
                         windowSystem.forceActive(childDialog.mainItem);
                         childDialog.mainItem.focus = true;
                         childDialog.mainItem.currentIndex = 0;
-                    } else if (event.key == Qt.Key_Right && childDialog == null) {
+                    } else if (event.key == Qt.Key_Right && childDialog == null
+                        && currentItem != null && currentItem.hasChildren) {
                         dialogSpawnTimer.focusOnSpawn = true;
                         dialogSpawnTimer.restart();
                     } else if (event.key == Qt.Key_Left && dialog != null) {
-- 
2.3.4

openSUSE Build Service is sponsored by