From ca4fb79af72bd25558dfb5a4afb1e605705489b7 Mon Sep 17 00:00:00 2001 From: malte_langkabel Date: Fri, 15 Jan 2016 13:43:09 +0100 Subject: [PATCH] ui: fixed search navigation bug * fixed bug where navigating backwards to a symbol that was activated using the search bar did not update the search bar's text. --- src/lib/component/controller/helper/ActivationTranslator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/component/controller/helper/ActivationTranslator.cpp b/src/lib/component/controller/helper/ActivationTranslator.cpp index 4e56f73a..9a63b0ae 100644 --- a/src/lib/component/controller/helper/ActivationTranslator.cpp +++ b/src/lib/component/controller/helper/ActivationTranslator.cpp @@ -108,6 +108,9 @@ std::shared_ptr ActivationTranslator::translateMessage(co m = std::make_shared(tokenIds); m->undoRedoType = message->undoRedoType; m->setKeepContent(message->keepContent()); - m->isFromSearch = true; + if (message->isFresh()) + { + m->isFromSearch = true; + } return m; }