mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 03:40:20 +02:00
Merge pull request #12717 from sethalves/workaround-dialog-crash
fix -- work around asset-upload dialog crash
This commit is contained in:
commit
0862f345fe
2 changed files with 12 additions and 4 deletions
|
@ -270,7 +270,9 @@ ModalWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.result = null;
|
root.result = null;
|
||||||
root.canceled();
|
root.canceled();
|
||||||
root.destroy();
|
// FIXME we are leaking memory to avoid a crash
|
||||||
|
// root.destroy();
|
||||||
|
visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,7 +294,9 @@ ModalWindow {
|
||||||
}
|
}
|
||||||
root.result = JSON.stringify(result);
|
root.result = JSON.stringify(result);
|
||||||
root.selected(root.result);
|
root.selected(root.result);
|
||||||
root.destroy();
|
// FIXME we are leaking memory to avoid a crash
|
||||||
|
// root.destroy();
|
||||||
|
visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,9 @@ ModalWindow {
|
||||||
shortcut: Qt.Key_Escape
|
shortcut: Qt.Key_Escape
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.canceled();
|
root.canceled();
|
||||||
root.destroy();
|
// FIXME we are leaking memory to avoid a crash
|
||||||
|
// root.destroy();
|
||||||
|
visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
|
@ -179,7 +181,9 @@ ModalWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.result = items ? comboBox.currentText : textResult.text
|
root.result = items ? comboBox.currentText : textResult.text
|
||||||
root.selected(root.result);
|
root.selected(root.result);
|
||||||
root.destroy();
|
// FIXME we are leaking memory to avoid a crash
|
||||||
|
// root.destroy();
|
||||||
|
visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue