Commit 2ef1a681 authored by Daniel Teske's avatar Daniel Teske
Browse files

QmlProject: Fix wrong "." level in project structure

Change-Id: I6b69a055aa2793ebf0b254ed2b54c008388cc094
Task-number: QTCREATORBUG-15044
Reviewed-by: default avatarRobert Loehning <>
parent 9b8f713b
......@@ -97,6 +97,8 @@ void QmlProjectNode::refresh()
// plain old file format
absoluteFilePath = fileInfo.filePath();
relativeDirectory = m_project->projectDir().relativeFilePath(fileInfo.path());
if (relativeDirectory == QLatin1String("."))
} else {
absoluteFilePath = m_project->projectDir().absoluteFilePath(fileInfo.filePath());
relativeDirectory = fileInfo.path();
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