Create new task in result editor
To prevent concurrent access
This commit is contained in:
parent
409ad6d3c2
commit
1ce2f86b3d
@ -63,7 +63,8 @@ ResultEditor::ResultEditor(Manager &manager, const CommonModels &models,
|
||||
void ResultEditor::show(const TaskPtr &task)
|
||||
{
|
||||
SOFT_ASSERT(task, return );
|
||||
task_ = task;
|
||||
task_ = std::make_shared<Task>();
|
||||
*task_ = *task;
|
||||
|
||||
image_->setPixmap(task->captured);
|
||||
recognizedEdit_->setText(task->recognized);
|
||||
|
Loading…
Reference in New Issue
Block a user