mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #15131 from danteruiz/destroy-modal-dialogs
Case 15127: Esc key doesn't consistently set my avatar to 'Away' mode
This commit is contained in:
commit
343e2648bb
3 changed files with 5 additions and 21 deletions
|
@ -273,11 +273,7 @@ ModalWindow {
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.result = null;
|
root.result = null;
|
||||||
root.canceled();
|
root.canceled();
|
||||||
// FIXME we are leaking memory to avoid a crash
|
root.destroy();
|
||||||
// root.destroy();
|
|
||||||
|
|
||||||
root.disableFade = true
|
|
||||||
visible = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,11 +295,7 @@ ModalWindow {
|
||||||
}
|
}
|
||||||
root.result = JSON.stringify(result);
|
root.result = JSON.stringify(result);
|
||||||
root.selected(root.result);
|
root.selected(root.result);
|
||||||
// FIXME we are leaking memory to avoid a crash
|
root.destroy();
|
||||||
// root.destroy();
|
|
||||||
|
|
||||||
root.disableFade = true
|
|
||||||
visible = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -815,7 +815,7 @@ ModalWindow {
|
||||||
Action {
|
Action {
|
||||||
id: cancelAction
|
id: cancelAction
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
onTriggered: { canceled(); root.shown = false; }
|
onTriggered: { canceled(); root.destroy(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,11 +168,7 @@ ModalWindow {
|
||||||
shortcut: "Esc"
|
shortcut: "Esc"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.canceled();
|
root.canceled();
|
||||||
// FIXME we are leaking memory to avoid a crash
|
root.destroy();
|
||||||
// root.destroy();
|
|
||||||
|
|
||||||
root.disableFade = true
|
|
||||||
visible = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,11 +179,7 @@ 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);
|
||||||
// FIXME we are leaking memory to avoid a crash
|
root.destroy();
|
||||||
// root.destroy();
|
|
||||||
|
|
||||||
root.disableFade = true
|
|
||||||
visible = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue