Skip to content

Commit

Permalink
引入了新bug 还原代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Jun 20, 2022
1 parent b76284f commit 98efd19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions QBRssManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1237,9 +1237,7 @@ def menu_delete_action(self):

# 修改为只删除当前行, 不清理列表
r = self.tableWidget.currentRow()
# 修复bug 直接pop掉数据而不是修改数据 避免数据序列污染
data_list.pop(r)
data_list.append(['' for _ in range(len(headers))])
data_list[r] = ['' for _ in range(len(headers))]
cx = r
for cy in range(len(headers)):
item = QTableWidgetItem('')
Expand Down

0 comments on commit 98efd19

Please sign in to comment.