From 19c4b555d520252069fc7224a425bf0cc158609c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 27 Aug 2013 04:27:28 +0200 Subject: [PATCH] Less warnings in TabButton --- src/declarativeimports/plasmacomponents/qml/TabButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/TabButton.qml b/src/declarativeimports/plasmacomponents/qml/TabButton.qml index 9882e1a4c..85b3caeb4 100644 --- a/src/declarativeimports/plasmacomponents/qml/TabButton.qml +++ b/src/declarativeimports/plasmacomponents/qml/TabButton.qml @@ -92,7 +92,7 @@ Item { opacity: enabled ? 1 : 0.6 //long notation to not make it overwritten by implementations Connections { - target: root + target: (root != undefined) ? root : undefined onPressedChanged: { //TabBar is the granparent internal.tabBar.currentTab = root @@ -113,7 +113,7 @@ Item { property Item tabBar: Utils.findParent(root, "currentTab") property Item tabGroup: Utils.findParent(tab, "currentTab") - property bool portrait: root.height >= label.paintedHeight + 16 + property bool portrait: (root != undefined) && (label != undefined) && root.height >= label.paintedHeight + 16 function click() { root.clicked()