From 51cd80cda1259f7f6eb85225bc0f6f486f35395e Mon Sep 17 00:00:00 2001 From: zhangsheng Date: Wed, 11 Dec 2024 09:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=97=B6=E4=B8=BB=E8=A7=86=E5=9B=BE=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8D=E5=85=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ImportConfig.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ImportConfig.cpp b/ImportConfig.cpp index f453785..1a0404b 100644 --- a/ImportConfig.cpp +++ b/ImportConfig.cpp @@ -100,9 +100,8 @@ void CImportConfig::on_pushButton_confirm_clicked() file.open(QIODevice::ReadWrite | QIODevice::Text); value = file.readAll(); file.resize(0); - file.write(value.toUtf8()); value.replace(oldMAC,MAC); - value = file.readAll(); + file.write(value.toUtf8()); file.close();