只修改同名的别名

This commit is contained in:
jiayulong 2026-05-19 15:37:42 +08:00
parent 57823699a3
commit 510f78af28

View File

@ -2047,9 +2047,9 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant
m_formInfo->m_strLineName = strLineName;
//m_formInfo->m_strSlfName = sFilePath;
//显示名称,替换曲线名
if(m_formInfo->m_strAliasName.contains(strOldLineName))
if(m_formInfo->m_strAliasName == strOldLineName)
{
m_formInfo->m_strAliasName.replace(strOldLineName, strLineName);
m_formInfo->m_strAliasName = strLineName;
//
for (auto it = m_propertyData.constBegin(); it != m_propertyData.constEnd(); ++it)
{