Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shlib: use idle_add() to launch thgexit

Allow the top window shutdown code to complete before
closing main window.

Changeset 894a6d366064

Parent a1d4475a8bf2

by Steve Borho

Changes to one file · Browse files at 894a6d366064 Showing diff from parent a1d4475a8bf2 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​shlib.py Stacked
 
15
16
17
 
18
19
20
 
155
156
157
158
 
159
160
161
 
15
16
17
18
19
20
21
 
156
157
158
 
159
160
161
162
@@ -15,6 +15,7 @@
 import shelve  import time  import hgtk +import gobject  from mercurial.i18n import _    class SimpleMRUList(object): @@ -155,7 +156,7 @@
   def thgexit(window):   if thgclose(window): - hgtk.thgexit(window) + gobject.idle_add(hgtk.thgexit, window)    def thgclose(window):   if hasattr(window, 'should_live'):