Skip to content

Commit afb55c2

Browse files
fix logic for amoutn 1
1 parent 6dedd3e commit afb55c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,12 +803,12 @@ def add_node(self, node):
803803
if itm_find:
804804
self._prop_list.removeRow(itm_find[0].row())
805805

806+
self._prop_list.insertRow(0)
806807
rows = self._prop_list.rowCount() - 1
807-
if rows >= (self.limit()-1):
808+
809+
if rows >= (self.limit()):
808810
# remove last row
809-
self._prop_list.removeRow(rows - 1)
810-
811-
self._prop_list.insertRow(0)
811+
self._prop_list.removeRow(rows)
812812

813813
prop_widget = self.create_property_editor(node=node)
814814
prop_widget.property_closed.connect(self.__on_prop_close)

0 commit comments

Comments
 (0)