This commit is contained in:
claudi 2026-01-28 11:43:31 +01:00
parent 86034358b7
commit 6db67ee445
5 changed files with 9 additions and 10 deletions

View file

@ -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)

View file

@ -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: