[TD]prevent detail object deletion during task dialog

This commit is contained in:
wandererfan
2025-07-17 18:35:49 -04:00
committed by Yorik van Havre
parent 1d64a3a983
commit c47cd6bece
3 changed files with 34 additions and 3 deletions

View File

@@ -651,6 +651,17 @@ void TaskDlgDetail::modifyStandardButtons(QDialogButtonBox* box)
widget->saveButtons(btnOK, btnCancel);
}
std::string TaskDlgDetail::getDetailName() const
{
DrawViewDetail* detailObj = widget->getDetailFeat();
if (!detailObj) {
return {"not found"};
}
return detailObj->getNameInDocument();
}
//==== calls from the TaskView ===============================================================
void TaskDlgDetail::open()
{