Fix bug in Entry::autoTypeSequence() with default window sequences.

When using the default sequence autoTypeSequence() returned an empty string.
This commit is contained in:
Felix Geyer 2012-07-16 17:34:19 +02:00
parent 0b8f07f58e
commit 7abaf0e215

View File

@ -186,14 +186,16 @@ QString Entry::autoTypeSequence(const QString& windowTitle) const
bool enableSet = false;
QString sequence;
if (!windowTitle.isEmpty()) {
bool match = false;
Q_FOREACH (const AutoTypeAssociations::Association& assoc, m_autoTypeAssociations->getAll()) {
if (windowMatches(windowTitle, assoc.window)) {
sequence = assoc.sequence;
match = true;
break;
}
}
if (sequence.isEmpty()) {
if (!match) {
return QString();
}
}