Skip to content

Commit 9aaf69b

Browse files
authored
Close dialog after connect to the closed signal
1 parent d11284d commit 9aaf69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

confirmDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ class ConfirmDialog extends ModalDialog.ModalDialog {
164164
let keys = dialog.confirmButtons[i].key;
165165
buttons.push({
166166
action: () => {
167-
this.close();
168167
let signalId = this.connect('closed',
169168
() => {
170169
this.disconnect(signalId);
171170
this._confirm(signal);
172171
});
172+
this.close();
173173
},
174174
label: label,
175175
key: keys

0 commit comments

Comments
 (0)