:tab-clone - restore tab zoom after history

This makes cloning the zoom work with QtWebEngine.
This commit is contained in:
Florian Bruhin 2016-09-06 15:15:59 +02:00
parent 7b9b08a167
commit abdc604ead

View File

@ -427,8 +427,8 @@ class CommandDispatcher:
if config.get('tabs', 'tabs-are-windows'):
new_tabbed_browser.window().setWindowIcon(curtab.icon())
newtab.data.keep_icon = True
newtab.zoom.set_factor(curtab.zoom.factor())
newtab.history.deserialize(curtab.history.serialize())
newtab.zoom.set_factor(curtab.zoom.factor())
return newtab
@cmdutils.register(instance='command-dispatcher', scope='window')