data: Fixed file node finding in search and undoing file activations in graph
This commit is contained in:
@@ -91,7 +91,7 @@ void FeatureController::handleMessage(MessageActivateNodes* message)
|
||||
|
||||
for (const MessageActivateNodes::ActiveNode& node : message->nodes)
|
||||
{
|
||||
if (!message->isReplayed() && node.nodeId)
|
||||
if (node.nodeId)
|
||||
{
|
||||
nodeIds.push_back(node.nodeId);
|
||||
}
|
||||
|
||||
@@ -1078,7 +1078,7 @@ std::vector<Id> PersistentStorage::getTokenIdsForMatches(const std::vector<Searc
|
||||
{
|
||||
if (match.nodeType == Node::NODE_FILE)
|
||||
{
|
||||
idSet.insert(m_sqliteStorage.getFileByPath(rootPath.concat(match.subtext).str()).id);
|
||||
idSet.insert(m_sqliteStorage.getFileByPath(rootPath.concat(match.subtext).canonical().str()).id);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user