Handle None-tab in get_tab_fields

I can't reproduce this but I got a crash report about it.
This commit is contained in:
Florian Bruhin 2017-03-27 07:57:43 +02:00
parent bcee6d295c
commit b98d34b29c

View File

@ -118,6 +118,9 @@ class TabWidget(QTabWidget):
def get_tab_fields(self, idx):
"""Get the tab field data."""
tab = self.widget(idx)
if tab is None:
log.misc.debug("Got None-tab in get_tab_fields!")
page_title = self.page_title(idx)
fields = {}