From e3181798b7941f0506cbc32f8ef5ffc579fe66e2 Mon Sep 17 00:00:00 2001
From: kienle <kienle@passcal.nmt.edu>
Date: Mon, 20 Mar 2023 10:40:59 -0600
Subject: [PATCH] Fix issue from updated FileListItem

---
 sohstationviewer/view/main_window.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py
index b7ba75a68..27792bb8d 100755
--- a/sohstationviewer/view/main_window.py
+++ b/sohstationviewer/view/main_window.py
@@ -974,13 +974,15 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow):
         """
         self.set_current_directory(self.current_dir)
 
-        open_file_paths = [self.open_files_list.item(i).file_path
-                           for i in range(self.open_files_list.count())]
+        open_file_paths = [
+            self.open_files_list.item(i).file_path
+            for i in range(self.open_files_list.count())
+        ]
         search_text = self.search_line_edit.text()
         filtered_file_paths = [
             path
             for path in open_file_paths
-            if search_text.casefold() in path.name.casefold()
+            if search_text.casefold() in path.casefold()
         ]
 
         # We are inserting the widgets in reverse order because doing so means
-- 
GitLab