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:
parent
bcee6d295c
commit
b98d34b29c
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user