Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
9146: FIX: Do not allow empty member selection in Extract struct fields and Generate getter/setter dialog r=dima74 a=Kobzol This PR makes two small fixes to the `Extract struct fields` refactoring dialog, and one larger fix amongst all member-based refactorings. These refactorings enabled the "allow empty selection" option of the member selection dialog, which made it possible to run `Extract Fields`, `Generate getter`, `Generate setter` and `Generate constructor` refactorings with no members selected. This doesn't really make sense though, the only refactoring where it might be remotely useful is `Generate constructor`. I have thus disabled empty selection for the mentioned refactorings, with the exception of `Generate constructor`. Fixes: #9130 changelog: Do not enable struct field extraction or getter/setter generation of no fields are selected. Co-authored-by: Jakub Beránek <berykubik@gmail.com>
- Loading branch information
Showing
6 changed files
with
20 additions
and
9 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
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
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