From 7abaf0e2158708089bea3ca408c496f20789a703 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 16 Jul 2012 17:34:19 +0200 Subject: [PATCH] Fix bug in Entry::autoTypeSequence() with default window sequences. When using the default sequence autoTypeSequence() returned an empty string. --- src/core/Entry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 07faa9c1f..97c1a402e 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -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(); } }