From 80195aa149761cfbe25cdfe663bf4b90f20f318d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 3 Jun 2014 14:28:55 +0200 Subject: [PATCH] check for currentTab --- src/declarativeimports/plasmacomponents/qml/TabBar.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/TabBar.qml b/src/declarativeimports/plasmacomponents/qml/TabBar.qml index 63bc71eb8..df31b97c9 100644 --- a/src/declarativeimports/plasmacomponents/qml/TabBar.qml +++ b/src/declarativeimports/plasmacomponents/qml/TabBar.qml @@ -97,11 +97,11 @@ FocusScope { PlasmaCore.FrameSvgItem { id: buttonFrame - visible: currentTab !== null + visible: currentTab && currentTab !== null x: layout.isHorizontal ? tabBarLayout.x + currentTab.x : 0 y: layout.isHorizontal ? 0 : tabBarLayout.y + currentTab.y - width: layout.isHorizontal ? currentTab.width + margins.left + margins.right -1 : parent.width - height: layout.isHorizontal ? parent.height : currentTab.height + margins.top + margins.bottom + width: currentTab && layout.isHorizontal ? currentTab.width + margins.left + margins.right -1 : parent.width + height: !currentTab || layout.isHorizontal ? parent.height : currentTab.height + margins.top + margins.bottom imagePath: "widgets/tabbar" prefix: { var prefix;