Changeset a31b4f8823ab…
Parent faed9c8b5d12…
by
Changes to one file · Browse files at a31b4f8823ab Showing diff from parent faed9c8b5d12 Diff from another changeset...
@@ -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()
|
Loading...