Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

visdiff: fix leak of temporary files

Changeset faf4e5a2f160

Parent 0fbcab262795

by Steve Borho

Changes to one file · Browse files at faf4e5a2f160 Showing diff from parent 0fbcab262795 Diff from another changeset...

 
478
479
480
481
482
 
483
484
485
486
 
 
487
488
489
 
491
492
493
494
495
 
 
496
497
498
 
478
479
480
 
 
481
482
483
484
 
485
486
487
488
489
 
491
492
493
 
 
494
495
496
497
498
@@ -478,12 +478,12 @@
  if name == selected:   combo.set_active(i)   - def should_live(self): - # TODO + def closeEvent(self, event):   while self.tmproot:   try:   shutil.rmtree(self.tmproot) - return False + event.accept() + return   except (IOError, OSError), e:   resp = qtlib.CustomPrompt(_('Unable to delete temp files'),   _('Close diff tools and try again, or quit to leak files?'), @@ -491,8 +491,8 @@
  if resp == 0:   continue   else: - return False - return False + event.accept() + return     def itemActivated(self, item):   'A QListWidgetItem has been activated'