Commit f7caf3ef authored by Daniel Teske's avatar Daniel Teske

For some nodes the path is a little bit special

Do not let that specialness escape into the DocumentManager.

Change-Id: I00ea17e031c0b73c9d022e736393ce56dce6497d
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 321a5614
......@@ -1810,11 +1810,11 @@ void ProjectExplorerPlugin::updateContext()
void ProjectExplorerPlugin::setCurrent(Project *project, QString filePath, Node *node)
{
if (debug)
qDebug() << "ProjectExplorer - setting path to " << (node ? node->path() : filePath)
qDebug() << "ProjectExplorer - setting path to " << (node ? pathFor(node) : filePath)
<< " and project to " << (project ? project->displayName() : QLatin1String("0"));
if (node)
filePath = node->path();
filePath = pathFor(node);
else
node = SessionManager::nodeForFile(filePath, project);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment