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

settings: handle None and '' differently when selecting initial value

Without this, SettingsCombo happens to pick '' for <unspecified>,
if its history contains empty string.

Changeset 30b2b0896654

Parent 74383c40fa36

by Yuya Nishihara

Changes to one file · Browse files at 30b2b0896654 Showing diff from parent 74383c40fa36 Diff from another changeset...

 
46
47
48
49
 
 
 
50
51
52
 
46
47
48
 
49
50
51
52
53
54
@@ -46,7 +46,9 @@
    def resetList(self):   self.clear() - ucur = hglib.tounicode(self.curvalue or '') + ucur = self.curvalue # None is valid value for <unspecified> + if ucur: + ucur = hglib.tounicode(ucur)   if self.opts.get('defer') and not self.loaded:   if self.curvalue == None: # unspecified   self.addItem(_unspecstr)