Don't show icons when cloning tabs if turned off.

Fixes #1007.
This commit is contained in:
Florian Bruhin 2015-10-10 12:47:02 +02:00
parent d0be9256b5
commit 4f2dbb3a72
2 changed files with 3 additions and 1 deletions

View File

@ -48,6 +48,7 @@ Fixed
~~~~~
- Fixed displaying of web history if `web-history-max-items` is set to -1.
- Cloned tabs now don't display favicons anymore if show-favicons is False.
v0.4.1
------

View File

@ -394,7 +394,8 @@ class CommandDispatcher:
window=newtab.win_id)
idx = new_tabbed_browser.indexOf(newtab)
new_tabbed_browser.set_page_title(idx, cur_title)
new_tabbed_browser.setTabIcon(idx, curtab.icon())
if config.get('tabs', 'show-favicons'):
new_tabbed_browser.setTabIcon(idx, curtab.icon())
newtab.keep_icon = True
newtab.setZoomFactor(curtab.zoomFactor())
history = qtutils.serialize(curtab.history())