Translations and code format

This commit is contained in:
Jonathan White 2025-10-26 09:09:41 -04:00
parent 8159e7a43c
commit bbeaf94d1d
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
2 changed files with 4 additions and 8 deletions

View file

@ -577,10 +577,6 @@
<source>Skip confirmation for main window Auto-Type actions</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Show subgroup entries in entry list view</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Auto-generate password for new entries</source>
<translation type="unfinished"></translation>

View file

@ -72,7 +72,7 @@ void EntryModel::setGroup(Group* group)
// Check if we should show subgroup entries
if (config()->get(Config::GUI_ShowSubgroupEntries).toBool()) {
m_entries = group->entriesRecursive();
// When showing subgroup entries, we need to connect to all groups
// that contain the entries being displayed
for (const auto& entry : asConst(m_entries)) {
@ -80,19 +80,19 @@ void EntryModel::setGroup(Group* group)
m_allGroups.append(entry->group());
}
}
// Always include the current group itself to handle new entries added directly to it
if (!m_allGroups.contains(group)) {
m_allGroups.append(group);
}
// Connect to all groups that have entries in the view (or could have entries)
for (const auto& groupToConnect : m_allGroups) {
if (groupToConnect) {
makeConnections(groupToConnect);
}
}
// Also connect to groupAdded signal from the main group to detect new subgroups
connect(group, SIGNAL(groupAdded()), SLOT(groupAdded()));
} else {