From 04e000d2b1719696581bb4ae6ec21e39236ef38c Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 18 Sep 2013 13:43:59 +0200 Subject: Fix Tab ownership issue that has been blocking stable->dev merge Change-Id: Ifcae96687bcc54486d7f16b1e1002e54394b914d Reviewed-by: Gabriel de Dietrich --- src/controls/TabView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/controls/TabView.qml') diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml index cd8a023a..bee7b3eb 100644 --- a/src/controls/TabView.qml +++ b/src/controls/TabView.qml @@ -95,7 +95,9 @@ FocusScope { Returns the newly added tab. */ function insertTab(index, title, component) { - var tab = tabcomp.createObject() + // 'loader' parent is a pending workaround while waiting for: + // https://codereview.qt-project.org/#change,65788 + var tab = tabcomp.createObject(loader) tab.sourceComponent = component tab.title = title // insert at appropriate index first, then set the parent to -- cgit v1.2.1