Commit 089cec4a authored by Samuel GAIST's avatar Samuel GAIST Committed by Samuel GAIST
Browse files

[widgets][scrollwidget] Fix clear implementation

The loop used to remove all widgets was wrongly implemented.

Fixes #231
parent 7433d57c
Pipeline #31006 passed with stage
in 33 minutes
......@@ -89,8 +89,8 @@ class EditorListWidget(QWidget):
def clear(self):
"""Clear the content of the area"""
for widget in self._widget_list:
self.removeWidget(widget)
while self._widget_list:
self.removeWidget(self._widget_list[-1])
class ScrollWidget(QScrollArea):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment