Merge pull request #15717 from annabrewer/qml-stackview-push-workaround

BUGZ-297: QT - Crash when opening a menu that spawns a desktop popup window while in VR (running scripts, settings, etc)
This commit is contained in:
Anthony Thibault 2019-06-10 11:01:10 -07:00 committed by GitHub
commit 5ea65c0a5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 8 deletions

View file

@ -34,7 +34,8 @@ StackView {
}
function pushSource(path) {
editRoot.push(Qt.resolvedUrl("../../" + path), itemProperties,
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
editRoot.push(item, itemProperties,
StackView.Immediate);
editRoot.currentItem.sendToScript.connect(editRoot.sendToScript);
}

View file

@ -37,7 +37,8 @@ StackView {
}
function pushSource(path) {
editRoot.push(Qt.resolvedUrl("../../" + path), itemProperties,
var item = Qt.createComponent(Qt.resolvedUrl("../../" + path));
editRoot.push(item, itemProperties,
StackView.Immediate);
editRoot.currentItem.sendToScript.connect(editRoot.sendToScript);
}

View file

@ -24,7 +24,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.resolvedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {

View file

@ -22,7 +22,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.reslovedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {

View file

@ -22,7 +22,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.resolvedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {

View file

@ -22,7 +22,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.resolvedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {

View file

@ -22,7 +22,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.resolvedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {

View file

@ -22,7 +22,8 @@ StackView {
signal sendToScript(var message);
function pushSource(path) {
profileRoot.push(Qt.resolvedUrl(path));
var item = Qt.createComponent(Qt.resolvedUrl(path));
profileRoot.push(item);
}
function popSource() {