mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
Translations and code format
This commit is contained in:
parent
8159e7a43c
commit
bbeaf94d1d
2 changed files with 4 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue