QtWebEngine: Fix userData() call on session saving
This commit is contained in:
parent
b78de501c2
commit
f72f82fb0c
@ -163,7 +163,12 @@ class SessionManager(QObject):
|
||||
if tab.history.current_idx() == idx:
|
||||
item_data['active'] = True
|
||||
|
||||
user_data = item.userData()
|
||||
try:
|
||||
user_data = item.userData()
|
||||
except AttributeError:
|
||||
# QtWebEngine
|
||||
user_data = None
|
||||
|
||||
if tab.history.current_idx() == idx:
|
||||
pos = tab.scroll.pos_px()
|
||||
item_data['zoom'] = tab.zoom.factor()
|
||||
|
Loading…
Reference in New Issue
Block a user