From f4a4930f42ff2d395189812996b37f81e787e1e5 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 15 Jul 2012 11:30:30 +0200 Subject: [PATCH] Entry::autoTypeSequence() returns null string when no window matches. Return QString() when a windowTitle is passed but doesn't match any auto-type association. --- src/core/Entry.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index c03b4b74e..58fe6e3b1 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -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; }