Modal stack: fix handling of destroyed actors
Destroyed modal actors should be completely removed from the modal stack automatically, including leaving modality if needed. This allows for destroying modal dialogs without calling close(). https://bugzilla.gnome.org/show_bug.cgi?id=619955
This commit is contained in:
parent
5e865f5bc4
commit
f5e58c500f
@ -683,7 +683,7 @@ function pushModal(actor, timestamp, options) {
|
|||||||
let actorDestroyId = actor.connect('destroy', function() {
|
let actorDestroyId = actor.connect('destroy', function() {
|
||||||
let index = _findModal(actor);
|
let index = _findModal(actor);
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
modalActorFocusStack.splice(index, 1);
|
popModal(actor);
|
||||||
});
|
});
|
||||||
let curFocus = global.stage.get_key_focus();
|
let curFocus = global.stage.get_key_focus();
|
||||||
let curFocusDestroyId;
|
let curFocusDestroyId;
|
||||||
|
Loading…
Reference in New Issue
Block a user