Fix up previous change; connect to signals correctly
svn path=/trunk/; revision=66
This commit is contained in:
parent
a62b215b06
commit
4840b813ca
@ -32,10 +32,12 @@ function start() {
|
|||||||
// Make sure not more than one run dialog is shown.
|
// Make sure not more than one run dialog is shown.
|
||||||
if (!run_dialog) {
|
if (!run_dialog) {
|
||||||
run_dialog = new RunDialog.RunDialog();
|
run_dialog = new RunDialog.RunDialog();
|
||||||
run_dialog.on_run = run_dialog.on_cancel = function() {
|
let handler = function() {
|
||||||
run_dialog.destroy();
|
run_dialog.destroy();
|
||||||
run_dialog = null;
|
run_dialog = null;
|
||||||
};
|
};
|
||||||
|
run_dialog.connect('run', handler);
|
||||||
|
run_dialog.connect('cancel', handler);
|
||||||
run_dialog.show();
|
run_dialog.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user