Fix: Disable 'Remove' button in Plugin Data when no row is selected #12916
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Fixed a UI consistency issue in the "Properties" tab of the entry editor. Previously, the "Remove" button in the Plugin Data section was enabled by default if any data existed, even if no specific row was selected.
Changes
EditWidgetProperties::update()insrc/gui/EditWidgetProperties.cpp.customDataTableinstead of just checking if the underlying data container is non-empty.Screenshots
[Paste your "Before" and "After" screenshots here by dragging them into the box]
Testing strategy
ctestto ensure no core logic was affected (95% pass rate, failures were unrelated to this UI change).Type of change