Fix compile error

Change-Id: Ibd4593381df017c80129ac9d56a5031e46bd908f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-07-22 07:46:11 +02:00
parent 2a5c2765c4
commit 2145023c8c

View File

@@ -443,7 +443,7 @@ static FilePath rootPathFromSettings(Project *project)
FilePath rootPath;
#ifndef WITH_TESTS
rootPath = FilePath::fromString(
namedSettings(ProjectExplorer::Constants::PROJECT_ROOT_PATH_KEY).toString());
project->namedSettings(ProjectExplorer::Constants::PROJECT_ROOT_PATH_KEY).toString());
#endif
if (rootPath.isEmpty())
rootPath = project->projectDirectory();