bugfixes
This commit is contained in:
parent
86034358b7
commit
6db67ee445
5 changed files with 9 additions and 10 deletions
|
|
@ -151,13 +151,13 @@ class MainWindow(QMainWindow):
|
|||
|
||||
# Back button
|
||||
back_action = self.web_view.pageAction(
|
||||
self.web_view.WebAction.Back
|
||||
self.web_view.WebAction.Back # type: ignore
|
||||
)
|
||||
toolbar.addAction(back_action)
|
||||
|
||||
# Forward button
|
||||
forward_action = self.web_view.pageAction(
|
||||
self.web_view.WebAction.Forward
|
||||
self.web_view.WebAction.Forward # type: ignore
|
||||
)
|
||||
toolbar.addAction(forward_action)
|
||||
|
||||
|
|
@ -170,7 +170,7 @@ class MainWindow(QMainWindow):
|
|||
|
||||
# Refresh button
|
||||
refresh_action = self.web_view.pageAction(
|
||||
self.web_view.WebAction.Reload
|
||||
self.web_view.WebAction.Reload # type: ignore
|
||||
)
|
||||
toolbar.addAction(refresh_action)
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class RestrictedWebEngineView(QWebEngineView):
|
|||
Args:
|
||||
request: Navigation request to process
|
||||
"""
|
||||
url = request.url
|
||||
url = request.url()
|
||||
|
||||
# If no restrictions, allow all URLs
|
||||
if not self.allowed_urls:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue