Fix up previous change; connect to signals correctly

svn path=/trunk/; revision=66
This commit is contained in:
Colin Walters 2008-11-20 15:47:13 +00:00
parent a62b215b06
commit 4840b813ca

View File

@ -32,10 +32,12 @@ function start() {
// Make sure not more than one run dialog is shown.
if (!run_dialog) {
run_dialog = new RunDialog.RunDialog();
run_dialog.on_run = run_dialog.on_cancel = function() {
let handler = function() {
run_dialog.destroy();
run_dialog = null;
};
run_dialog.connect('run', handler);
run_dialog.connect('cancel', handler);
run_dialog.show();
}
});