forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/5.0'
Conflicts: src/libs/utils/processreaper.cpp src/plugins/clangcodemodel/clangmodelmanagersupport.cpp src/plugins/cmakeprojectmanager/cmakeprocess.cpp Change-Id: Ie248bcb02a80f3e02ab19d73033ce2ba31e7fd83
This commit is contained in:
@@ -440,8 +440,13 @@ Utils::FilePath CompilationDatabaseProject::rootPathFromSettings() const
|
||||
#ifdef WITH_TESTS
|
||||
return Utils::FilePath::fromString(projectDirectory().fileName());
|
||||
#else
|
||||
return Utils::FilePath::fromString(
|
||||
auto rootPath = Utils::FilePath::fromString(
|
||||
namedSettings(ProjectExplorer::Constants::PROJECT_ROOT_PATH_KEY).toString());
|
||||
|
||||
if (rootPath.isEmpty())
|
||||
rootPath = Utils::FilePath::fromString(projectDirectory().fileName());
|
||||
|
||||
return rootPath;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user