From: Matthijs Kooijman Date: Wed, 12 Aug 2009 20:33:24 +0000 (+0200) Subject: Make the exit button on an error window work. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fmobilegtd.git;a=commitdiff_plain;h=cf46ba4c8ffa4233da9fe74d5f4fe4f62c9c8250 Make the exit button on an error window work. The exit button appeared to work already on my device, but didn't work with pys60-compat library yet. --- diff --git a/src/main.py b/src/main.py index f6fe14c..8825582 100644 --- a/src/main.py +++ b/src/main.py @@ -70,9 +70,12 @@ def run(): appuifw.app.title=u'Error' appuifw.app.body=t - #appuifw.app.exit_key_handler=gui.exit + appuifw.app.exit_key_handler=lock.signal lock.wait() + # Exit app when script returns + appuifw.app.set_exit() + if logger: logger.close()