<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>The documentation for KRecentFilesAction::saveEntries says "<span style="color: rgb(0, 0, 0); font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">You can provide the name of the group used to load the entries. If the groupname is empty, entries are saved to a group called 'RecentFiles'</span>".</p>
<p>And in the code it checks if name is empty `(cg.name().isEmpty()) { ... }`, but `cg.name()` is never empty [link1] resulting in the files being saved without a group, it was like this since the method was added [link2].</p>
<p>I wanted to submit a MR to kconfigwidgets also checking if the name is <default>, but since it's been like this from the beginning, it might be better to change the documentation for KRecentFilesAction::saveEntries.
----------------</p>
<p>link1: <a class="moz-txt-link-freetext" href="https://invent.kde.org/frameworks/kconfig/-/blob/e40531e29e2ff52d67156aa8ae7691488ca1c29b/src/core/kconfiggroup.cpp#L98">https://invent.kde.org/frameworks/kconfig/-/blob/e40531e29e2ff52d67156aa8ae7691488ca1c29b/src/core/kconfiggroup.cpp#L98</a></p>
<p>link2: <a class="moz-txt-link-freetext" href="https://github.com/KDE/kdelibs/commit/9cb1bcace61a1e96c21b92185f41ed2a396fbdd8#diff-8e9f49b617fa7af49d38cb3ac5d5a071ce7090fd832365c00106ec584283e762R91">https://github.com/KDE/kdelibs/commit/9cb1bcace61a1e96c21b92185f41ed2a396fbdd8#diff-8e9f49b617fa7af49d38cb3ac5d5a071ce7090fd832365c00106ec584283e762R91</a></p>
<p><style type="text/css">p, li { white-space: pre-wrap; }</style><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
</body>
</html>