Fix crash using Settings in the Tablet in VR

This was introduced in Qt5.12.3.  There are several issues in their bug tracker about this issue.

https://bugreports.qt.io/browse/QTBUG-75516
https://bugreports.qt.io/browse/QTBUG-75335

To workaround this, we call Qt.createComponent() manually, instead of letting StackView do it for us.
This commit is contained in:
Anthony J. Thibault 2019-06-07 16:41:56 -07:00
parent 1e827a925a
commit 00bba828ee

View file

@ -49,7 +49,10 @@ Item {
}
function pushSource(path) {
d.push(Qt.resolvedUrl("../../" + path));
// Workaround issue https://bugreports.qt.io/browse/QTBUG-75516 in Qt 5.12.3
// by creating the manually, instead of letting StackView do it for us.
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
d.push(item);
if (d.currentItem.sendToScript !== undefined) {
d.currentItem.sendToScript.connect(tabletMenu.sendToScript);
}