ui: Fixed search query without node disappears when submiting search request

This commit is contained in:
Eberhard Graether
2015-11-12 13:45:57 +01:00
parent 00b74d2f30
commit de4f2973bc
3 changed files with 4 additions and 1 deletions
@@ -14,7 +14,7 @@ SearchController::~SearchController()
void SearchController::handleMessage(MessageActivateTokens* message)
{
if (!message->keepContent())
if (!message->keepContent() && !message->isFromSearch)
{
getView()->setMatches(m_storageAccess->getSearchMatchesForTokenIds(message->tokenIds));
}
@@ -96,5 +96,6 @@ std::shared_ptr<MessageActivateTokens> ActivationTranslator::translateMessage(co
m = std::make_shared<MessageActivateTokens>(tokenIds);
m->undoRedoType = message->undoRedoType;
m->setKeepContent(message->keepContent());
m->isFromSearch = true;
return m;
}
@@ -13,6 +13,7 @@ public:
, isEdge(false)
, isAggregation(false)
, isFromSystem(false)
, isFromSearch(false)
{
}
@@ -26,6 +27,7 @@ public:
bool isEdge;
bool isAggregation;
bool isFromSystem;
bool isFromSearch;
};
#endif // MESSAGE_ACTIVATE_TOKENS_H