Skip to content

Commit

Permalink
fixing issue #287
Browse files Browse the repository at this point in the history
  • Loading branch information
k4yt3x committed Jun 5, 2020
1 parent d688ca4 commit 5f2ad35
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/video2x_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,9 @@ def update_input_table(self):
self.input_table_view.setModel(self.input_table_model)

def input_table_delete_selected(self):
items_to_delete = []
for index in [i.row() for i in self.input_table_view.selectedIndexes()]:
items_to_delete.append(self.input_table_data[index])

for item in items_to_delete:
self.input_table_data.remove(item)
indexes_to_delete = [i.row() for i in self.input_table_view.selectedIndexes()]
for index in sorted(indexes_to_delete, reverse=True):
del self.input_table_data[index]

self.update_output_path()
self.update_input_table()
Expand Down

0 comments on commit 5f2ad35

Please sign in to comment.