Make the exit button on an error window work.
authorMatthijs Kooijman <matthijs@stdin.nl>
Wed, 12 Aug 2009 20:33:24 +0000 (22:33 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 13 Aug 2009 09:58:43 +0000 (11:58 +0200)
The exit button appeared to work already on my device, but didn't work
with pys60-compat library yet.

src/main.py

index f6fe14c8dd5e8bcdcc5394df37223c322c416497..8825582a1634161403dce82d97515ddd6c5d80a7 100644 (file)
@@ -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()