forked from qt-creator/qt-creator
QmlProject: Fix wrong "." level in project structure
Change-Id: I6b69a055aa2793ebf0b254ed2b54c008388cc094 Task-number: QTCREATORBUG-15044 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
This commit is contained in:
@@ -97,6 +97,8 @@ void QmlProjectNode::refresh()
|
|||||||
// plain old file format
|
// plain old file format
|
||||||
absoluteFilePath = fileInfo.filePath();
|
absoluteFilePath = fileInfo.filePath();
|
||||||
relativeDirectory = m_project->projectDir().relativeFilePath(fileInfo.path());
|
relativeDirectory = m_project->projectDir().relativeFilePath(fileInfo.path());
|
||||||
|
if (relativeDirectory == QLatin1String("."))
|
||||||
|
relativeDirectory.clear();
|
||||||
} else {
|
} else {
|
||||||
absoluteFilePath = m_project->projectDir().absoluteFilePath(fileInfo.filePath());
|
absoluteFilePath = m_project->projectDir().absoluteFilePath(fileInfo.filePath());
|
||||||
relativeDirectory = fileInfo.path();
|
relativeDirectory = fileInfo.path();
|
||||||
|
|||||||
Reference in New Issue
Block a user