forked from FreeCAD/FreeCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gui: Prevent invalid editors in VarSet dialog
In the VarSet dialog, we can create an editor after the name and type has been determined. However, if the name is changed after an editor has been created, the editor is invalid because the underlying property has been removed. In that case, the function onNameDetermined() should clean up the invalid editor and this happens in most cases. Unfortunately, it cannot handle the case in which a click happens on the invalid editor itself. This click should result in onNameDetermined() but since the editor is already invalid, onNameDetermined() is triggered too late. The current commit solves this by listening for every change in the name of the property and handle the editors accordingly.
- Loading branch information
1 parent
7805c48
commit a4862b6
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters