diff --git a/cutelog/logger_tab.py b/cutelog/logger_tab.py index e97a4ba4446aa20fb0f665502ae7abddd6ed73a8..ac28b38942d22b9b2a927bb5ebcf61f8a54982ec 100644 --- a/cutelog/logger_tab.py +++ b/cutelog/logger_tab.py @@ -308,7 +308,10 @@ class RecordFilter(QSortFilterProxyModel): result = True if path: name = record.name - if name == path: + # name is None for record added by method add_conn_closed_record(). + if name is None: + result = False + elif name == path: result = True elif not self.selection_includes_children and name == path: result = True