actually fix handling of widget tabs
This commit is contained in:
parent
916c0bb569
commit
2cbfe0c180
|
@ -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)
|
||||
|
|
Reference in a new issue