Use QUrl instead of str to compare

This commit is contained in:
Simon Doppler 2018-02-12 16:06:17 +01:00
parent d6912be223
commit 417200fa70
No known key found for this signature in database
GPG Key ID: 9A08963DB82F5A19

View File

@ -214,7 +214,7 @@ def qute_tabs(_url):
scope='window',
window=win_id)
for tab in tabbed_browser.widgets():
if not tab.url().url().startswith("qute://tabs"):
if tab.url() != QUrl("qute://tabs/"):
tabs[str(win_id)].append((tab.title(), tab.url().url()))
html = jinja.render('tabs.html',