Use toDisplayString for URL text.
This commit is contained in:
parent
ba20300a2c
commit
983a0da520
@ -384,7 +384,7 @@ class WebView(QWebView):
|
||||
def on_url_changed(self, url):
|
||||
"""Update url_text when URL has changed."""
|
||||
qt_ensure_valid(url)
|
||||
self.url_text = url.toString()
|
||||
self.url_text = url.toDisplayString()
|
||||
|
||||
@pyqtSlot(str)
|
||||
def on_link_clicked(self, urlstr):
|
||||
|
Loading…
Reference in New Issue
Block a user