ui: disable re-pre-filling of indexed header paths for compilation database sourcegroups (issue #579)
* disable re-pre-filling of indexed header paths if these are empty when showing settings of a cdb sourgroup * fixed indexed header path were not regarded when deciding if project settings have been updated
This commit is contained in:
@@ -40,7 +40,8 @@ bool SourceGroupSettingsCxxCdb::equals(std::shared_ptr<SourceGroupSettings> othe
|
||||
return (
|
||||
otherCxxCdb &&
|
||||
SourceGroupSettingsCxx::equals(other) &&
|
||||
m_compilationDatabasePath == otherCxxCdb->m_compilationDatabasePath
|
||||
m_compilationDatabasePath == otherCxxCdb->m_compilationDatabasePath &&
|
||||
utility::isPermutation(m_indexedHeaderPaths, otherCxxCdb->m_indexedHeaderPaths)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -334,11 +334,6 @@ void QtProjectWizzardContentPathsCDBHeader::load()
|
||||
{
|
||||
if (std::shared_ptr<SourceGroupSettingsCxxCdb> cdbSettings = std::dynamic_pointer_cast<SourceGroupSettingsCxxCdb>(m_settings))
|
||||
{
|
||||
if (cdbSettings->getIndexedHeaderPaths().empty())
|
||||
{
|
||||
cdbSettings->setIndexedHeaderPaths(getIndexedPathsDerivedFromCDB(cdbSettings));
|
||||
}
|
||||
|
||||
m_list->setPaths(cdbSettings->getIndexedHeaderPaths());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user