fix:修正刷新界面逻辑,更改替换结果后使用搜索key刷新而不是替换后的key刷新。

This commit is contained in:
2024-07-31 11:41:13 +08:00
parent a6321bfd71
commit 52d3da20ad
4 changed files with 31 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ void CAttributeEdit::handle_ok()
for (int i = 0; i < row; ++i) {
QString key = table_->item(i, 0)->text();
QString value = table_->item(i, 1)->text();
property_.emplace_back(key.toStdString().c_str(), value.toStdString().c_str());
property_.emplace_back(key.toLocal8Bit().constData(), value.toLocal8Bit().constData());
}
is_ok_ = true;
close();