Changeset c3647813ddd0…
Parent 4e02beaf36d8…
by
Changes to one file · Browse files at c3647813ddd0 Showing diff from parent 4e02beaf36d8 Diff from another changeset...
@@ -205,7 +205,18 @@ vsettings = settings.Settings('visdiff')
vsettings.set_value('launchsingle', self.singlecheck.get_active())
vsettings.write()
- shutil.rmtree(tmproot)
+ while True:
+ try:
+ shutil.rmtree(tmproot)
+ return
+ except IOError:
+ resp = gdialog.CustomPrompt(_('Unable to delete temp files'),
+ _('Close diff tools and try again, or quit to leak files?'),
+ self, (_('Try &Again'), _('&Quit')), _('q')).run()
+ if resp == ord(_('a')):
+ continue
+ else:
+ return
def rowactivated(self, tree, path, column):
selection = tree.get_selection()
|
Loading...