From 39d353d073b03e06b003c23bc52b53d6c104c484 Mon Sep 17 00:00:00 2001 From: glubsy Date: Tue, 29 Dec 2020 18:28:30 +0100 Subject: [PATCH] Add comment about Win7 bug * For some reason the table view doesn't update properly after the test string button is clicked nor when the input field is edited * The table rows only get repainted the rows properly after receiving a mouse click event * This doesn't happen on Linux --- qt/exclude_list_dialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt/exclude_list_dialog.py b/qt/exclude_list_dialog.py index dd7d2002..f5ecf5d3 100644 --- a/qt/exclude_list_dialog.py +++ b/qt/exclude_list_dialog.py @@ -118,6 +118,8 @@ class ExcludeListDialog(QDialog): return # if at least one row matched, we know whether table is highlighted or not self._row_matched = self.model.test_string(input_text) + # FIXME There is a bug on Windows (7) where the table rows don't get + # repainted until the table receives a mouse click event. self.tableView.update() input_regex = self.inputLine.text() @@ -160,5 +162,6 @@ Example: if you want to filter out .PNG files from the "My Pictures" directory o .*My\\sPictures\\\\.*\\.png

\ You can test the regular expression with the test string feature by pasting a fake path in it:
\ C:\\\\User\\My Pictures\\test.png

-Matching regular expressions will be highlighted.

+Matching regular expressions will be highlighted.
\ +If there is at least one highlight, the path tested will be ignored during scans.

\ Directories and files starting with a period '.' are filtered out by default.

"""))