mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix bug in Entry::autoTypeSequence() with default window sequences.
When using the default sequence autoTypeSequence() returned an empty string.
This commit is contained in:
parent
0b8f07f58e
commit
7abaf0e215
@ -186,14 +186,16 @@ QString Entry::autoTypeSequence(const QString& windowTitle) const
|
|||||||
bool enableSet = false;
|
bool enableSet = false;
|
||||||
QString sequence;
|
QString sequence;
|
||||||
if (!windowTitle.isEmpty()) {
|
if (!windowTitle.isEmpty()) {
|
||||||
|
bool match = false;
|
||||||
Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) {
|
Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) {
|
||||||
if (windowMatches(windowTitle, assoc.window)) {
|
if (windowMatches(windowTitle, assoc.window)) {
|
||||||
sequence = assoc.sequence;
|
sequence = assoc.sequence;
|
||||||
|
match = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sequence.isEmpty()) {
|
if (!match) {
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user