FIX: Crash U

TaoZhang-Branch
karlis 2023-03-09 23:31:55 +08:00
parent d0cbdd65ec
commit fedb147dd3
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ QTreeWidgetItem* LayerWrapper::getQTreeItem()
{
this->qTreeWidgetItem.setText(0, this->property.name);
this->qTreeWidgetItem.setData(0, Qt::UserRole, QVariant::fromValue(this));
return &this->qTreeWidgetItem;
return new QTreeWidgetItem(this->qTreeWidgetItem);
}
QTreeWidgetItem* FolderLayerWrapper::getQTreeItem()