From fb769872ff58566c6efb361797054e92fdba5c5e Mon Sep 17 00:00:00 2001 From: Brianna Major Date: Wed, 20 Dec 2023 15:42:29 -0500 Subject: [PATCH] Only use file name in LoadImagesDialog The full path is too long. Signed-off-by: Brianna Major --- hexrdgui/load_images_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hexrdgui/load_images_dialog.py b/hexrdgui/load_images_dialog.py index b168c2ecf..3ef9b0145 100644 --- a/hexrdgui/load_images_dialog.py +++ b/hexrdgui/load_images_dialog.py @@ -123,7 +123,7 @@ def setup_standard_table(self, table): table.cellWidget(i, 1).currentTextChanged.connect( lambda v, i=i: self.selection_changed(v, i)) - f = QTableWidgetItem(self.image_files[i]) + f = QTableWidgetItem(Path(self.image_files[i]).name) table.setItem(i, 2, f) def setup_table(self): @@ -160,7 +160,7 @@ def update_table(self): table.cellWidget(i, 2).currentTextChanged.connect( lambda v, i=i: self.selection_changed(v, i)) else: - f = QTableWidgetItem(image_files[i]) + f = QTableWidgetItem(Path(image_files[i]).name) table.setItem(i, 2, f) def results(self):