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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3225>
This commit is contained in:
Carlos Garnacho 2024-03-06 11:35:35 +01:00
parent da21f8114a
commit a60d454cca

View File

@ -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;