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:
|
if tab.history.current_idx() == idx:
|
||||||
item_data['active'] = True
|
item_data['active'] = True
|
||||||
|
|
||||||
|
try:
|
||||||
user_data = item.userData()
|
user_data = item.userData()
|
||||||
|
except AttributeError:
|
||||||
|
# QtWebEngine
|
||||||
|
user_data = None
|
||||||
|
|
||||||
if tab.history.current_idx() == idx:
|
if tab.history.current_idx() == idx:
|
||||||
pos = tab.scroll.pos_px()
|
pos = tab.scroll.pos_px()
|
||||||
item_data['zoom'] = tab.zoom.factor()
|
item_data['zoom'] = tab.zoom.factor()
|
||||||
|
Loading…
Reference in New Issue
Block a user