Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarreras committed Oct 8, 2012
1 parent 9019ba1 commit 69b2c7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/common/common.py
Expand Up @@ -557,12 +557,13 @@ def ask(question, parent=None):
win.set_icon(OPENERP_ICON)

response = win.run()
name = entry.get_text()
parent.present()
win.destroy()
if response == gtk.RESPONSE_CANCEL:
return None
else:
return entry.get_text()
return name

def concurrency(resource, id, context, parent=None):
dia = glade.XML(common.terp_path("openerp.glade"),'dialog_concurrency_exception',gettext.textdomain())
Expand Down

0 comments on commit 69b2c7d

Please sign in to comment.