Mercurial > getan
changeset 271:60725e0bcddb
Use exit when returning from adding a project
Avoid code duplication when a project is added successfully.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 11 Apr 2013 12:44:33 +0200 (2013-04-11) |
parents | 8a3dd18a0b61 |
children | 0190f1c30e3e |
files | getan/states.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/getan/states.py Thu Apr 11 12:43:52 2013 +0200 +++ b/getan/states.py Thu Apr 11 12:44:33 2013 +0200 @@ -676,8 +676,7 @@ if description == '': return self self.controller.add_project(self.key, description) - self.controller.view.set_footer_text(self.msg('choose_proj'), 'question') - self.set_next_state(PausedProjectsState(self.controller, self.view)) + self.exit() return True