From 2b0fdc186ce8f3217b07431ab0844352594bd96e Mon Sep 17 00:00:00 2001 From: einarr Date: Wed, 26 Apr 2006 14:01:46 +0000 Subject: [PATCH] Fiexd the cancel button of the new project dialog. Closes #7 --- system/dialogs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/dialogs.py b/system/dialogs.py index efebc5e..d713bcf 100644 --- a/system/dialogs.py +++ b/system/dialogs.py @@ -48,6 +48,7 @@ class CreateProjectDruid(gtk.Window): self['druidpagefinish1'].connect('finish', self.finish) self['workflow_list'].connect('cursor_changed', self.selection_updated) + self['druid'].connect('cancel', self.cancel) self.connect('destroy', self.delete) def delete(self, widget): @@ -68,6 +69,10 @@ class CreateProjectDruid(gtk.Window): self.hide() self.destroy() + def cancel(self, *ignored): + self.hide() + self.destroy() + def selection_updated(self, *rest): tree, it = self['workflow_list'].get_selection().get_selected() wf = self.workflows.get_value(it, 1)