parent
56cbfbe668
commit
9fa036ecce
@ -24,7 +24,6 @@ import functools
|
|||||||
import subprocess
|
import subprocess
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
import sip
|
|
||||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QEvent, Qt, QUrl
|
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QEvent, Qt, QUrl
|
||||||
from PyQt5.QtGui import QMouseEvent, QClipboard
|
from PyQt5.QtGui import QMouseEvent, QClipboard
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
@ -146,8 +145,6 @@ class HintManager(QObject):
|
|||||||
pass
|
pass
|
||||||
for f in self._context.frames:
|
for f in self._context.frames:
|
||||||
log.hints.debug("Disconnecting frame {}".format(f))
|
log.hints.debug("Disconnecting frame {}".format(f))
|
||||||
if objreg.get('args').debug:
|
|
||||||
sip.dump(f)
|
|
||||||
try:
|
try:
|
||||||
f.contentsSizeChanged.disconnect(self.on_contents_size_changed)
|
f.contentsSizeChanged.disconnect(self.on_contents_size_changed)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
@ -646,8 +643,6 @@ class HintManager(QObject):
|
|||||||
self._context.target = target
|
self._context.target = target
|
||||||
self._context.baseurl = tabbed_browser.current_url()
|
self._context.baseurl = tabbed_browser.current_url()
|
||||||
self._context.frames = webelem.get_child_frames(mainframe)
|
self._context.frames = webelem.get_child_frames(mainframe)
|
||||||
for frame in self._context.frames:
|
|
||||||
frame.destroyed.connect(self.on_frame_destroyed)
|
|
||||||
self._context.args = args
|
self._context.args = args
|
||||||
self._init_elements(mainframe, group)
|
self._init_elements(mainframe, group)
|
||||||
message_bridge = objreg.get('message-bridge', scope='window',
|
message_bridge = objreg.get('message-bridge', scope='window',
|
||||||
@ -786,8 +781,3 @@ class HintManager(QObject):
|
|||||||
# hinting.
|
# hinting.
|
||||||
return
|
return
|
||||||
self._cleanup()
|
self._cleanup()
|
||||||
|
|
||||||
@pyqtSlot('QObject')
|
|
||||||
def on_frame_destroyed(self, obj):
|
|
||||||
"""Log when a frame got destroyed by Qt."""
|
|
||||||
log.hints.debug("frame destroyed: {}".format(obj))
|
|
||||||
|
Loading…
Reference in New Issue
Block a user