Skip to content

Commit d3280b8

Browse files
authored
Merge pull request #103 from leggiero/patch-1
Close dialog after connect to the closed signal
2 parents d11284d + 9aaf69b commit d3280b8

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)