Skip to content

Commit

Permalink
Prevent crash if Auto-Type performed on new entry
Browse files Browse the repository at this point in the history
* Check that entry's group is not nullptr
* Fixes #3967
  • Loading branch information
droidmonkey committed Jan 8, 2020
1 parent ae471be commit da90842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autotype/AutoType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da90842

Please sign in to comment.