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

thgconfig: make safe for non-windows platforms again

Changeset a31b4f8823ab

Parent faed9c8b5d12

by Steve Borho

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

 
438
439
440
441
 
 
 
442
443
444
 
469
470
471
472
 
 
473
474
475
 
438
439
440
 
441
442
443
444
445
446
 
471
472
473
 
474
475
476
477
478
@@ -438,7 +438,9 @@
  if os.name == 'nt':   self.shellframe = self.add_page(notebook, _('Shell Ext'))   self.fill_shell_frame(self.shellframe) - self.shellframe.set_sensitive(not configrepo) + self.shellframe.set_sensitive(not configrepo) + else: + self.shellframe = None   self.configrepo = configrepo     # Force dialog into clean state in the beginning @@ -469,7 +471,8 @@
  self.set_title(_('TortoiseHg Configure User-Global Settings'))   gtklib.set_tortoise_icon(self, 'settings_user.ico')   self.root = None - self.shellframe.set_sensitive(not self.configrepo) + if self.shellframe: + self.shellframe.set_sensitive(not self.configrepo)   self.ini = self.load_config(self.rcpath)   self.refresh_vlist()   self.pathdata.clear()