# HG changeset patch # User Björn Ricks # Date 1365677073 -7200 # Node ID 60725e0bcddb5b97343460741aa62ce358e08582 # Parent 8a3dd18a0b6129c6d8d9deca64949814c72eccc9 Use exit when returning from adding a project Avoid code duplication when a project is added successfully. diff -r 8a3dd18a0b61 -r 60725e0bcddb getan/states.py --- 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