QtWebEngine: Fix userData() call on session saving

This commit is contained in:
Florian Bruhin 2016-07-07 11:14:30 +02:00
parent b78de501c2
commit f72f82fb0c

View File

@ -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
user_data = item.userData() try:
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()