Get tab indicator fix from #697

This commit is contained in:
Florian Bruhin 2016-06-06 16:49:29 +02:00
parent 7651b3a9f5
commit 3e22f64a20
2 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,7 @@ Fixed
- Fixed qutebrowser not starting when `sys.stderr` is `None`
- Fixed crash when cancelling a download which belongs to a MHTML download
- Fixed rebinding of keybindings being case-sensitive
- Fix for tab indicators getting lost when moving tabs
v0.6.2
------

View File

@ -995,9 +995,12 @@ class CommandDispatcher:
cmdutils.check_overflow(new_idx, 'int')
self._tabbed_browser.setUpdatesEnabled(False)
try:
color = self._tabbed_browser.tabBar().tab_data(
cur_idx, 'indicator-color')
self._tabbed_browser.removeTab(cur_idx)
self._tabbed_browser.insertTab(new_idx, tab, icon, label)
self._set_current_index(new_idx)
self._tabbed_browser.set_tab_indicator_color(new_idx, color)
finally:
self._tabbed_browser.setUpdatesEnabled(True)