Handle url with trailing slash and without

This commit is contained in:
Simon Doppler 2018-02-12 22:48:41 +01:00
parent 9a0c113f8a
commit 0b047e3e10
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', scope='window',
window=win_id) window=win_id)
for tab in tabbed_browser.widgets(): for tab in tabbed_browser.widgets():
if tab.url() != QUrl("qute://tabs/"): if tab.url() not in [QUrl("qute://tabs/"), QUrl("qute://tabs")]:
tabs[str(win_id)].append( tabs[str(win_id)].append(
(tab.title(), tab.url().toDisplayString())) (tab.title(), tab.url().toDisplayString()))