FreeCAD: master 961e936e

Author Committer Branch Timestamp Parent
chennes wwmayer master 2021-02-19 03:02:48 master ed02d1bb
Changeset [GUI] Modify behavior of VectorListEditor

VectorListEditor allows row-by-row creation of a list of three-component
vector values. Values are manipulated using spinboxes. The previous behavior
was that the spinboxes only affected the existing rows: when creating a row
the contents of the spinboxes were ignored. This commit modifies that behavior
so that a new row gets the contents of the spinboxes. In addition, in the original
code the "Accept" button was enabled even when there was no row to edit, making
it unclear whether a user needed to click the add row button or the accept
button. Clicking the accept button did nothing if there was no existing row,
and if compiled in debug mode, an assertion was raised.
mod - src/Gui/VectorListEditor.cpp Diff File