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) {
|
||||
if (inTmpl) {
|
||||
if (ch == '{') {
|
||||
qWarning("Syntax error in auto-type sequence.");
|
||||
return false;
|
||||
}
|
||||
else if (ch == '}') {
|
||||
QList<AutoTypeAction*> autoType = createActionFromTemplate(tmpl, entry);
|
||||
if (autoType.isEmpty()) return false;
|
||||
QList<AutoTypeAction *> autoType = createActionFromTemplate(tmpl, entry);
|
||||
if (autoType.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
actions.append(autoType);
|
||||
inTmpl = false;
|
||||
tmpl.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user