mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-04 17:05:23 -05:00
fix syntax error
This commit is contained in:
parent
fbfc2e4d07
commit
a4bdc9a71d
@ -356,13 +356,16 @@ bool AutoType::parseActions(const QString& sequence, const Entry* entry, QList<A
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const QChar &ch : sequence) {
|
for (const QChar &ch : sequence) {
|
||||||
|
if (inTmpl) {
|
||||||
if (ch == '{') {
|
if (ch == '{') {
|
||||||
qWarning("Syntax error in auto-type sequence.");
|
qWarning("Syntax error in auto-type sequence.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (ch == '}') {
|
else if (ch == '}') {
|
||||||
QList<AutoTypeAction*> autoType = createActionFromTemplate(tmpl, entry);
|
QList<AutoTypeAction *> autoType = createActionFromTemplate(tmpl, entry);
|
||||||
if (autoType.isEmpty()) return false;
|
if (autoType.isEmpty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
actions.append(autoType);
|
actions.append(autoType);
|
||||||
inTmpl = false;
|
inTmpl = false;
|
||||||
tmpl.clear();
|
tmpl.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user