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

settings: disable editing when read-only

Changeset 7de81c71a159

Parent d8c15ef0057f

by Steve Borho

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

 
43
44
45
 
46
47
48
 
113
114
115
 
116
117
118
 
577
578
579
580
 
 
581
582
583
 
43
44
45
46
47
48
49
 
114
115
116
117
118
119
120
 
579
580
581
 
582
583
584
585
586
@@ -43,6 +43,7 @@
  settings = opts['settings']   slist = settings.value('settings/'+opts['cpath']).toStringList()   self.previous = [s for s in slist] + self.setDisabled(opts['readonly'])   self.resetList()     def resetList(self): @@ -113,6 +114,7 @@
  self.opts = opts   self.curvalue = False   self.setEchoMode(QLineEdit.Password) + self.setDisabled(opts['readonly'])     def focusInEvent(self, e):   self.opts['descwidget'].setPlainText(self.opts['tooltip']) @@ -577,7 +579,8 @@
    for row, (label, cpath, values, tooltip) in enumerate(info):   opts = {'label':label, 'cpath':cpath, 'tooltip':tooltip, - 'descwidget':self.desctext, 'settings':self.settings} + 'descwidget':self.desctext, 'settings':self.settings, + 'readonly':self.readonly}   if isinstance(values, tuple):   func = values[0]   w = func(opts, values[1])