ui: Fixed activating history item from menu showed wrong symbol (issue #572)

* Refactored SearchMatch: removed delimiter, added tokenName
* Refactored MessageActivateTokens: removed tokenNames
* Restore from SearchMatches from NameHierarchies of tokens
This commit is contained in:
Eberhard Graether
2018-06-30 02:16:03 +02:00
parent 84ddb4ba21
commit 6794b61fab
18 changed files with 115 additions and 104 deletions
@@ -190,9 +190,10 @@ void CodeController::handleMessage(MessageActivateTokens* message)
std::wstring status = L"";
if (message->tokenNames.size())
std::vector<NameHierarchy> tokenNames = message->getTokenNamesOfMatches();
if (tokenNames.size())
{
status += L"Activate \"" + message->tokenNames[0].getQualifiedName() + L"\": ";
status += L"Activate \"" + tokenNames[0].getQualifiedName() + L"\": ";
}
status += std::to_wstring(message->tokenIds.size()) + L" ";