mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-30 23:58:11 +00:00
fixing issue #287
This commit is contained in:
parent
d688ca490e
commit
5f2ad35d41
@ -842,12 +842,9 @@ class Video2XMainWindow(QMainWindow):
|
|||||||
self.input_table_view.setModel(self.input_table_model)
|
self.input_table_view.setModel(self.input_table_model)
|
||||||
|
|
||||||
def input_table_delete_selected(self):
|
def input_table_delete_selected(self):
|
||||||
items_to_delete = []
|
indexes_to_delete = [i.row() for i in self.input_table_view.selectedIndexes()]
|
||||||
for index in [i.row() for i in self.input_table_view.selectedIndexes()]:
|
for index in sorted(indexes_to_delete, reverse=True):
|
||||||
items_to_delete.append(self.input_table_data[index])
|
del self.input_table_data[index]
|
||||||
|
|
||||||
for item in items_to_delete:
|
|
||||||
self.input_table_data.remove(item)
|
|
||||||
|
|
||||||
self.update_output_path()
|
self.update_output_path()
|
||||||
self.update_input_table()
|
self.update_input_table()
|
||||||
|
Loading…
Reference in New Issue
Block a user