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

settings: enable write-back, borrow code from tip of stable repo

Changeset bc4abde7de03

Parent 7de81c71a159

by Steve Borho

Changes to one file · Browse files at bc4abde7de03 Showing diff from parent 7de81c71a159 Diff from another changeset...

 
673
674
675
676
677
678
679
680
681
682
 
684
685
686
687
 
688
689
 
690
691
692
 
673
674
675
 
676
 
 
677
678
679
 
681
682
683
 
684
685
 
686
687
688
689
@@ -673,10 +673,7 @@
    def applyChanges(self):   if self.readonly: - #dialog? Read only access, please install ...   return - print 'leave on training wheels' - return     for info, widgets in self.pages.values():   for row, (label, cpath, values, tip) in enumerate(info): @@ -684,9 +681,9 @@
  self.recordNewValue(cpath, newvalue)     try: - f = open(self.fn, 'w') + f = util.atomictempfile(self.fn, 'w', createmode=None)   f.write(str(self.ini)) - f.close() + f.rename()   except IOError, e:   qtlib.WarningMsgBox(_('Unable to write configuration file'),   str(e), parent=self)