diff --git a/logPlus/PropertyWidget.cpp b/logPlus/PropertyWidget.cpp index 34c6f83..ce7a6dd 100644 --- a/logPlus/PropertyWidget.cpp +++ b/logPlus/PropertyWidget.cpp @@ -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) {