Improve workaround comment

This commit is contained in:
Florian Bruhin 2017-12-02 14:37:59 +01:00
parent e9be357104
commit 689fe96393

View File

@ -177,7 +177,8 @@ class CompletionModel(QAbstractItemModel):
pattern: The filter pattern to set.
"""
log.completion.debug("Setting completion pattern '{}'".format(pattern))
# layoutChanged is broken in pyqt-5.7.1, so we must use metaObject
# WORKAROUND:
# layoutChanged is broken in PyQt 5.7.1, so we must use metaObject
# https://www.riverbankcomputing.com/pipermail/pyqt/2017-January/038483.html
self.metaObject().invokeMethod(self, "layoutAboutToBeChanged")
for cat in self._categories: