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

thgconfig: remove temp path if cancelled in PathEditDialog

Changeset c45954109a2c

Parent f0f0e57c73cd

by Yuki KODAMA

Changes to one file · Browse files at c45954109a2c Showing diff from parent f0f0e57c73cd Diff from another changeset...

 
581
582
583
584
 
585
586
 
587
588
589
 
602
603
604
 
 
 
 
605
606
607
 
581
582
583
 
584
585
 
586
587
588
589
 
602
603
604
605
606
607
608
609
610
611
@@ -581,9 +581,9 @@
    def _add_path(self, *args):   self.new_path('http://') - self._edit_path() + self._edit_path(new=True)   - def _edit_path(self, *args): + def _edit_path(self, *args, **opts):   selection = self.pathtree.get_selection()   if not selection.count_selected_rows():   return @@ -602,6 +602,10 @@
  model[path][1] = url.hidepassword(dialog.newpath)   model[path][2] = dialog.newpath   self.dirty_event() + elif opts.has_key('new') and opts['new'] == True: + del self.pathdata[path] + self.refresh_path_list() + self.dirty_event()     def _remove_path(self, *args):   selection = self.pathtree.get_selection()