Repository navigation
Split GpgIdSigner::haveSecretKey and StoreModel::showThis - #2428
Conversation
Part of #2157. Behaviour-preserving extractions, comments moved verbatim: - GpgIdSigner::haveSecretKey (CCN 22 to 3): the colon-listing parse moves to signingBlocks() (12) and the fingerprint match to signsWith() (9), both in an anonymous namespace with the Key struct. - StoreModel::showThis (CCN 21 to 14): the folder-with-rows branch moves to showsFolder() (8). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Anne Jan Brouwer <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
nogeenhenk
left a comment
There was a problem hiding this comment.
Reviewed at 90efee6. The seventh refactor for #2157; only the structure changes.
GpgIdSigner::haveSecretKey: thegpg --list-secret-keysrun and its early returns stay;signingBlocks()is the old parse unchanged (it never used the configured key), andsignsWith()the old match, with the same block and subkey rules.Keymoves to the anonymous namespace; nothing else in the file is called that.StoreModel::showThis:showsFolder()is the old branch for a folder with rows, unchanged, recursion throughshowThis()included.
Nothing to add.
Generated by Claude Code
Summary
Part of #2157, batch 7. Only the structure changes: the extracted code is moved as it was, comments included.
GpgIdSigner::haveSecretKeysigningBlocks()(12),signsWith()(9)StoreModel::showThisshowsFolder()(8)haveSecretKey()keeps thegpg --list-secret-keysrun. The colon-listing parse moves tosigningBlocks(), and the fingerprint match tosignsWith(). Both helpers sit in an anonymous namespace with theKeystruct, which was local to the function before. The comment on the records goes with the parse, and the comment on subkey versus primary goes with the match.showThis()hands the branch for a folder with rows toshowsFolder(): any shown row, or, in a search, the folder's own name.Test plan
qmake6 -r CONFIG+=rnp && make -j12 && make checkin a scratchHOME/GNUPGHOME: 37 suites, 2,079 passed, 0 faileddoxygen Doxyfile: no warningslizard -C 14shows no warnings in these two files🤖 Generated with Claude Code
Summary by CodeRabbit
.gitpaths remain excluded.