summaryrefslogtreecommitdiff
path: root/qutebrowser/mainwindow
diff options
context:
space:
mode:
authorJason Rosenzweig <mail4jasonr@gmail.com>2021-06-04 01:37:46 +0800
committerJason Rosenzweig <mail4jasonr@gmail.com>2021-06-04 01:37:46 +0800
commit9d06d97fbe8f486d36b3dcf98ced5d9328ef3970 (patch)
tree184a0521e7f57b4090542cc1f554a0d41c176184 /qutebrowser/mainwindow
parenta88a83765c5749d18c24ff6daeff4cdbb534f0f6 (diff)
downloadqutebrowser-9d06d97fbe8f486d36b3dcf98ced5d9328ef3970.tar.gz
qutebrowser-9d06d97fbe8f486d36b3dcf98ced5d9328ef3970.zip
Using self._root_index more because I wasn't using it before
Diffstat (limited to 'qutebrowser/mainwindow')
-rw-r--r--qutebrowser/mainwindow/prompt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/mainwindow/prompt.py b/qutebrowser/mainwindow/prompt.py
index 3e6ffba01..3b5ed0fd5 100644
--- a/qutebrowser/mainwindow/prompt.py
+++ b/qutebrowser/mainwindow/prompt.py
@@ -635,7 +635,7 @@ class FilenamePrompt(_BasePrompt):
try:
num_rows = self._file_model.rowCount(self._root_index)
for row in range(num_rows):
- index = self._file_model.index(row, 0, self._file_model.index(path))
+ index = self._file_model.index(row, 0, self._root_index)
hidden = self._to_complete not in index.data()
self._file_view.setRowHidden(index.row(), index.parent(), hidden)
except FileNotFoundError:
@@ -734,7 +734,7 @@ class FilenamePrompt(_BasePrompt):
try:
num_rows = self._file_model.rowCount(self._root_index)
for row in range(num_rows):
- index = self._file_model.index(row, 0, self._file_model.index(path))
+ index = self._file_model.index(row, 0, self._root_index)
hidden = self._to_complete not in index.data()
if not hidden:
dirs.append(index.data())