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

thgconfig: prevent showing confirm dialog if it's in readonly mode

Changeset cae72dc6aeb3

Parent ad30cf1e2643

by Yuki KODAMA

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

 
652
653
654
655
 
656
657
658
 
652
653
654
 
655
656
657
658
@@ -652,7 +652,7 @@
  return True     def should_live(self, *args): - if self.dirty: + if self.dirty and not self.readonly:   ret = gdialog.Confirm(_('Confirm quit without saving?'), [], self,   _('Yes to abandon changes, No to continue')).run()   if ret != gtk.RESPONSE_YES: