[TD]prevent detail object deletion during task dialog
This commit is contained in:
committed by
Yorik van Havre
parent
1d64a3a983
commit
c47cd6bece
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user