Skip to content

Commit

Permalink
F | 修复FlowLayout删除Widget用法错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LxHTT committed Aug 31, 2023
1 parent 7c1e9f5 commit 4472de9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Interfaces/OfInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,7 @@ def logout(self):
def getNodeList_API(self):
OFVariables.nodeListData = []
try:
for i in reversed(range(self.nodeLayout.count())):
self.nodeLayout.itemAt(i).widget().deleteLater()
self.nodeLayout.takeAllWidgets()
for i in reversed(range(self.loadingStatusLayout.count())):
self.loadingStatusLayout.itemAt(i).widget().deleteLater()
except Exception:
Expand Down

0 comments on commit 4472de9

Please sign in to comment.