From 510f78af28c446b08b73036dd4da8b967eb73d4d Mon Sep 17 00:00:00 2001 From: jiayulong Date: Tue, 19 May 2026 15:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E4=BF=AE=E6=94=B9=E5=90=8C=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/PropertyWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {