fix:1.当编辑除了key以外的属性,无法编辑,会提示有相同key。

2.点击x退出时触发的是yes按钮功能。
3.属性编辑了key之后,界面没有同步更新。
This commit is contained in:
2024-05-16 14:42:19 +08:00
parent 106f51aad2
commit 0ca591c238
4 changed files with 44 additions and 14 deletions

View File

@@ -57,6 +57,8 @@ void CAttributeEdit::show_before()
{
init_table();
is_ok_ = false;
for(auto i = 0; i < property_.size(); ++i) {
int row = table_->rowCount();
table_->insertRow(row);

View File

@@ -30,7 +30,7 @@ private:
void handle_ok();
public:
bool is_ok_{};
bool is_ok_{ false };
private:
Ui::CAttributeEdit* ui;