Merge branch 'peterlvilim-show-default-value'
This commit is contained in:
commit
6c2471bf9c
@ -130,8 +130,8 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
// QUTE_AUTHORS_START
|
// QUTE_AUTHORS_START
|
||||||
* Florian Bruhin
|
* Florian Bruhin
|
||||||
* Claude
|
* Claude
|
||||||
* John ShaggyTwoDope Jenkins
|
|
||||||
* Peter Vilim
|
* Peter Vilim
|
||||||
|
* John ShaggyTwoDope Jenkins
|
||||||
* rikn00
|
* rikn00
|
||||||
* Martin Zimmermann
|
* Martin Zimmermann
|
||||||
* Joel Torstensson
|
* Joel Torstensson
|
||||||
|
@ -116,8 +116,10 @@ class SettingValueCompletionModel(base.BaseCompletionModel):
|
|||||||
value = '""'
|
value = '""'
|
||||||
self.cur_item, _descitem, _miscitem = self.new_item(cur_cat, value,
|
self.cur_item, _descitem, _miscitem = self.new_item(cur_cat, value,
|
||||||
"Current value")
|
"Current value")
|
||||||
self.new_item(cur_cat, configdata.DATA[section][option].default(),
|
default_value = configdata.DATA[section][option].default()
|
||||||
"Default value")
|
if not default_value:
|
||||||
|
default_value = '""'
|
||||||
|
self.new_item(cur_cat, default_value, "Default value")
|
||||||
if hasattr(configdata.DATA[section], 'valtype'):
|
if hasattr(configdata.DATA[section], 'valtype'):
|
||||||
# Same type for all values (ValueList)
|
# Same type for all values (ValueList)
|
||||||
vals = configdata.DATA[section].valtype.complete()
|
vals = configdata.DATA[section].valtype.complete()
|
||||||
|
Loading…
Reference in New Issue
Block a user