diff options
author | Andrew <amacfie@sent.com> | 2021-01-19 10:23:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 10:23:44 -0500 |
commit | 8c9d9c74c8ed097c1a06fb0ab889330f11577cd7 (patch) | |
tree | 0cf3d7ace955c24e99a67b06f7042d130f5b89f4 /qutebrowser/completion | |
parent | e95e7991d97754324ccaaefe40a62f9c116fc443 (diff) | |
download | qutebrowser-8c9d9c74c8ed097c1a06fb0ab889330f11577cd7.tar.gz qutebrowser-8c9d9c74c8ed097c1a06fb0ab889330f11577cd7.zip |
Update qutebrowser/completion/models/filepathcategory.py
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Diffstat (limited to 'qutebrowser/completion')
-rw-r--r-- | qutebrowser/completion/models/filepathcategory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/completion/models/filepathcategory.py b/qutebrowser/completion/models/filepathcategory.py index fd58a4ee0..fb71cf6c3 100644 --- a/qutebrowser/completion/models/filepathcategory.py +++ b/qutebrowser/completion/models/filepathcategory.py @@ -28,8 +28,8 @@ from PyQt5.QtCore import QAbstractListModel, QModelIndex class FilePathCategory(QAbstractListModel): """Represent filesystem paths matching a pattern.""" - def __init__(self, name: str): - super().__init__() + def __init__(self, name: str, parent: QObject = None) -> None: + super().__init__(parent) self._paths: list = [] self.name = name self.columns_to_filter = [0] |