From a60d454cca558aa1f8d727dd43182ff319ab5eb2 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 6 Mar 2024 11:35:35 +0100 Subject: [PATCH] endSessionDialog: Disconnect signal from the right object This signal id comes from a signal handler on self, use the right object when disconnecting it. Spotted by Eugene Popov at https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140#note_2039721. Fixes: b3f5fdcb6 ("endSessionDialog: Connect to events in the dialog itself") Part-of: --- js/ui/endSessionDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 15bfc6f9e..302ed1d61 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -476,7 +476,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { _stopAltCapture() { if (this._capturedEventId > 0) { - global.stage.disconnect(this._capturedEventId); + this.disconnect(this._capturedEventId); this._capturedEventId = 0; } this._rebootButton = null;