Skip to content

Commit

Permalink
[QT] Fix web inspector not loading correct URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Sirokov committed Jun 30, 2020
1 parent aa5cb06 commit 513a06d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webview/platforms/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ def __init__(self, window):

if window.real_url is not None:
self.view.setUrl(QtCore.QUrl(window.real_url))
elif window.uid == 'web_inspector':
self.view.setUrl(QtCore.QUrl(window.original_url))
elif window.html:
self.view.setHtml(window.html, QtCore.QUrl(''))
else:
Expand Down Expand Up @@ -432,6 +434,9 @@ def return_result(result):
logger.exception(e)

def on_load_finished(self):
if self.uid == 'web_inspector':
return

self._set_js_api()

if not self.text_select:
Expand Down

0 comments on commit 513a06d

Please sign in to comment.