mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Prevent crash if Auto-Type performed on new entry
* Check that entry's group is not nullptr * Fixes #3967
This commit is contained in:
parent
62cda9dd40
commit
39a7ce58b9
@ -588,12 +588,12 @@ QList<AutoTypeAction*> AutoType::createActionFromTemplate(const QString& tmpl, c
|
||||
QList<QString> AutoType::autoTypeSequences(const Entry* entry, const QString& windowTitle)
|
||||
{
|
||||
QList<QString> sequenceList;
|
||||
const Group* group = entry->group();
|
||||
|
||||
if (!entry->autoTypeEnabled()) {
|
||||
if (!group || !entry->autoTypeEnabled()) {
|
||||
return sequenceList;
|
||||
}
|
||||
|
||||
const Group* group = entry->group();
|
||||
do {
|
||||
if (group->autoTypeEnabled() == Group::Disable) {
|
||||
return sequenceList;
|
||||
|
Loading…
Reference in New Issue
Block a user