Commit bb8ff39a authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Don't crash while printing debug info

Current node can be 0.
parent bcf559cd
...@@ -1154,7 +1154,7 @@ void ProjectExplorerPlugin::setCurrent(Project *project, QString filePath, Node ...@@ -1154,7 +1154,7 @@ void ProjectExplorerPlugin::setCurrent(Project *project, QString filePath, Node
if (projectChanged || m_currentNode != node) { if (projectChanged || m_currentNode != node) {
m_currentNode = node; m_currentNode = node;
if (debug) if (debug)
qDebug() << "ProjectExplorer - currentNodeChanged(" << node->path() << ", " << (project ? project->name() : "0") << ")"; qDebug() << "ProjectExplorer - currentNodeChanged(" << (node ? node->path() : "0") << ", " << (project ? project->name() : "0") << ")";
emit currentNodeChanged(m_currentNode, project); emit currentNodeChanged(m_currentNode, project);
} }
if (projectChanged) { if (projectChanged) {
......
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