actually fix handling of widget tabs

This commit is contained in:
Izalia Mae 2020-09-24 16:39:51 -04:00
parent 916c0bb569
commit 2cbfe0c180

View file

@ -461,16 +461,16 @@ class Browser(QMainWindow):
return
widgettabs = {
'bookmarks': tabs.Bookmarks,
'history': tabs.History,
'downloads': tabs.Downloads,
'preferences': tabs.Preferences
'Bookmarks': tabs.Bookmarks,
'History': tabs.History,
'Downloads': tabs.Downloads,
'Preferences': tabs.Preferences
}
widget = widgettabs.get(widgetname)
if not widget:
logging.error('OOF!')
logging.error('Failed to open widget tab:', widgetname)
return
self.widgettabs[widgetname] = widget(self)