Entry::autoTypeSequence() returns null string when no window matches.

Return QString() when a windowTitle is passed but doesn't match any
auto-type association.
This commit is contained in:
Felix Geyer 2012-07-15 11:30:30 +02:00
parent 6d5b31f527
commit f4a4930f42

View File

@ -186,9 +186,12 @@ QString Entry::autoTypeSequence(const QString& windowTitle) const
break;
}
}
}
if (sequence.isEmpty()) {
if (sequence.isEmpty()) {
return QString();
}
}
else {
sequence = m_data.defaultAutoTypeSequence;
}