Use QUrl instead of str to compare
This commit is contained in:
parent
d6912be223
commit
417200fa70
@ -214,7 +214,7 @@ def qute_tabs(_url):
|
|||||||
scope='window',
|
scope='window',
|
||||||
window=win_id)
|
window=win_id)
|
||||||
for tab in tabbed_browser.widgets():
|
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()))
|
tabs[str(win_id)].append((tab.title(), tab.url().url()))
|
||||||
|
|
||||||
html = jinja.render('tabs.html',
|
html = jinja.render('tabs.html',
|
||||||
|
Loading…
Reference in New Issue
Block a user