Skip to content

Commit

Permalink
bugfix: cannot open image with UNC path
Browse files Browse the repository at this point in the history
  • Loading branch information
Sg4Dylan committed Jun 28, 2022
1 parent 04d5533 commit 5717972
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def openfile(self):


def double_click_search_table(self, info):
row = info.row()
os.startfile(self.resultTable.item(row, 0).text())
file_path = self.resultTable.item(info.row(), 0).text()
os.startfile(os.path.normpath(file_path))


def double_click_duplicate_table(self, info):
Expand All @@ -74,6 +74,7 @@ def start_search(self):
return
self.resultTable.setRowCount(0) # 清空表格
nc = self.resultCount.value()
nc = nc if nc <= len(self.exists_index) else len(self.exists_index)
results = utils.checkout(self.input_path[0], self.exists_index, nc)
for i in results:
row = self.resultTable.rowCount()
Expand Down

0 comments on commit 5717972

Please sign in to comment.