Merge pull request #15714 from hyperlogic/bug-fix/settings-on-tablet

Fix crash using Settings in the Tablet in VR
This commit is contained in:
Anthony Thibault 2019-06-07 18:15:56 -07:00 committed by GitHub
commit d6331d1bf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}