From f72fa2b2b2c8c3072ee304f7913826de80888e40 Mon Sep 17 00:00:00 2001 From: eneelo Date: Thu, 7 Dec 2023 16:14:19 +0100 Subject: [PATCH] gui: fix wildcard filter when multiple files loaded --- qats/app/gui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qats/app/gui.py b/qats/app/gui.py index 2191e18..150f15b 100644 --- a/qats/app/gui.py +++ b/qats/app/gui.py @@ -638,7 +638,10 @@ def model_view_filter_changed(self): # construct regexp string that may be used to initiate QRegularExpression instance if filter_type == "wildcard": # pad with wildcard ('*') to get expected behaviour - reg_exp_pattern = QRegularExpression.wildcardToRegularExpression(f"*{pattern}*") + reg_exp_pattern = QRegularExpression.wildcardToRegularExpression( + f"*{pattern}*", + options=QRegularExpression.WildcardConversionOption.NonPathWildcardConversion + ) elif filter_type == "regexp": # pattern string should be interpreted as a regexp pattern reg_exp_pattern = pattern @@ -1397,7 +1400,6 @@ def update_model(self, newdb): # fill item model with time series by unique id (common path is removed) names = self.db.list(names="*", relative=True, display=False) self.db_source_model.clear() # clear before re-adding - # quickfix for Wildcard issue (#119): replace '\' by '/' for name in names: # set each item as unchecked initially item = QStandardItem(name)