ui: Fixed search query without node disappears when submiting search request
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user