This commit is contained in:
Florian Bruhin 2016-08-10 20:23:41 +02:00
parent 08d9243c3e
commit b801d3316d

View File

@ -21,7 +21,7 @@
from qutebrowser.config import config from qutebrowser.config import config
from qutebrowser.utils import message, debug, log from qutebrowser.utils import message, log
from PyQt5.QtCore import QObject, QEvent, Qt from PyQt5.QtCore import QObject, QEvent, Qt
@ -44,6 +44,7 @@ class ChildEventFilter(QObject):
self._widget = widget self._widget = widget
def eventFilter(self, obj, event): def eventFilter(self, obj, event):
"""Act on ChildAdded events."""
if event.type() == QEvent.ChildAdded: if event.type() == QEvent.ChildAdded:
child = event.child() child = event.child()
log.mouse.debug("{} got new child {}, installing filter".format( log.mouse.debug("{} got new child {}, installing filter".format(