Escape & in tab titles properly

This commit is contained in:
Florian Bruhin 2014-07-02 23:05:42 +02:00
parent c18027f3ae
commit b22ebb7778
2 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@ Bugs
- When loading http://www.the-compiler.org:4040/ ssl errors get displayed in
green because we're in insert mode.
- Escape & in tab-titles (and probably other places too?)
- page-forward clicks "Newest" on http://explosm.net/ instead of "Next".
- seir sometimes sees "-- COMMAND MODE --" even though that should never

View File

@ -374,7 +374,7 @@ class TabbedBrowser(TabWidget):
# We can get signals for tabs we already deleted...
log.webview.debug("Got invalid tab {}!".format(tab))
return
self.setTabText(idx, text)
self.setTabText(idx, text.replace('&', '&&'))
if idx == self.currentIndex():
self.title_changed.emit('{} - qutebrowser'.format(text))
else:
@ -394,7 +394,7 @@ class TabbedBrowser(TabWidget):
log.webview.debug("Got invalid tab {}!".format(tab))
return
if not self.tabText(idx):
self.setTabText(idx, url)
self.setTabText(idx, url.replace('&', '&&'))
@pyqtSlot(WebView)
def on_icon_changed(self, tab):