diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts index d011f8de4..e32e590f0 100644 --- a/share/translations/keepassxc_en.ts +++ b/share/translations/keepassxc_en.ts @@ -577,10 +577,6 @@ Skip confirmation for main window Auto-Type actions - - Show subgroup entries in entry list view - - Auto-generate password for new entries diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 378bfce82..93635483c 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -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 {