data: Fixed file node finding in search and undoing file activations in graph

This commit is contained in:
Eberhard Graether
2017-02-13 22:31:42 +01:00
parent 356c753f13
commit 1d133492ed
2 changed files with 2 additions and 2 deletions
@@ -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);
}
+1 -1
View File
@@ -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
{