Fix configdata.py typos, use scheme from url.

This commit is contained in:
Nathan Isom 2015-10-14 13:22:28 -05:00
parent d7d4c232d0
commit e78b00cce2
2 changed files with 2 additions and 6 deletions

View File

@ -423,7 +423,7 @@ class WebView(QWebView):
"""
ok = not self.page().error_occurred
if ok and not self._has_ssl_errors:
if self.cur_url.toDisplayString().startswith('https'):
if self.cur_url.scheme() == 'https':
self._set_load_status(LoadStatus.success_https)
else:
self._set_load_status(LoadStatus.success)

View File

@ -872,17 +872,13 @@ def data(readonly=False):
SettingValue(typ.QssColor(), '#ff4444'),
"Foreground color of the matched text in the completion."),
('statusbar.fg.https',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar(https)."),
('statusbar.fg',
SettingValue(typ.QssColor(), 'white'),
"Foreground color of the statusbar(http)."),
('statusbar.bg',
SettingValue(typ.QssColor(), 'black'),
"Background color of the statusbar(http)."),
"Background color of the statusbar."),
('statusbar.fg.error',
SettingValue(typ.QssColor(), '${statusbar.fg}'),