Merge branch 'show-default-value' of https://github.com/peterlvilim/qutebrowser into peterlvilim-show-default-value

This commit is contained in:
Florian Bruhin 2015-01-21 07:07:25 +01:00
commit d540a1ee22

View File

@ -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()