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:
parent
da21f8114a
commit
a60d454cca
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user