parent
41dfa29648
commit
c9cd47b5b1
@ -28,7 +28,7 @@ import html as html_utils
|
|||||||
import sip
|
import sip
|
||||||
from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Qt, QEvent, QPoint, QPointF,
|
from PyQt5.QtCore import (pyqtSignal, pyqtSlot, Qt, QEvent, QPoint, QPointF,
|
||||||
QUrl, QTimer)
|
QUrl, QTimer)
|
||||||
from PyQt5.QtGui import QKeyEvent
|
from PyQt5.QtGui import QKeyEvent, QIcon
|
||||||
from PyQt5.QtNetwork import QAuthenticator
|
from PyQt5.QtNetwork import QAuthenticator
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScript
|
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScript
|
||||||
@ -923,6 +923,13 @@ class WebEngineTab(browsertab.AbstractTab):
|
|||||||
self.openurl(url))
|
self.openurl(url))
|
||||||
self._reload_url = None
|
self._reload_url = None
|
||||||
|
|
||||||
|
if not qtutils.version_check('5.10', compiled=False):
|
||||||
|
# We can't do this when we have the loadFinished workaround as that
|
||||||
|
# sometimes clears icons without loading a new page.
|
||||||
|
# In general, this is handled by Qt, but when loading takes long,
|
||||||
|
# the old icon is still displayed.
|
||||||
|
self.icon_changed.emit(QIcon())
|
||||||
|
|
||||||
@pyqtSlot(QUrl)
|
@pyqtSlot(QUrl)
|
||||||
def _on_predicted_navigation(self, url):
|
def _on_predicted_navigation(self, url):
|
||||||
"""If we know we're going to visit an URL soon, change the settings."""
|
"""If we know we're going to visit an URL soon, change the settings."""
|
||||||
|
Loading…
Reference in New Issue
Block a user