From bc416d487a406df3ed4ec958816bd69d2a4a4071 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 26 Jul 2017 10:11:38 -0600 Subject: Avoid lots of undefined warnings --- framework/qml/TreeView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/qml') diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml index c73ffe7d..caef0146 100644 --- a/framework/qml/TreeView.qml +++ b/framework/qml/TreeView.qml @@ -162,7 +162,7 @@ FocusScope { height: Kube.Units.gridUnit * 1.5 //FIXME This is the only way I could find to get the correct width. parent.width is way to wide - width: parent.parent.parent.width + width: parent.parent.parent ? parent.parent.parent.width : 0 color: Kube.Colors.textColor Rectangle { -- cgit v1.2.3