Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable gtklib: make both dlg wrappers return False on cancel

If user cancels file saving, native dialog returns False,
while Windows dialog returns None. This changeset changes
Windows dialog to return False, and tests the dlg return
value before attempting to confirm a file overwrite.

Changeset b373e0db0c4c

Parent 1dab5d2926ad

by Emmanuel Rosa

Changes to one file · Browse files at b373e0db0c4c Showing diff from parent 1dab5d2926ad Diff from another changeset...

 
206
207
208
209
 
210
211
212
 
206
207
208
 
209
210
211
212
@@ -206,7 +206,7 @@
  while thread.isAlive():   # let gtk process events while we wait for rundlg finishing   gtk.main_iteration(block=True) - fname = None + fname = False   if q.qsize():   fname = q.get(0)   return fname