Skip to content

Commit

Permalink
Only use file name in LoadImagesDialog
Browse files Browse the repository at this point in the history
The full path is too long.

Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
bnmajor committed Dec 20, 2023
1 parent 83b124d commit fb76987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hexrdgui/load_images_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit fb76987

Please sign in to comment.