Core: Enable TaskDialogs to associate view (#17373)
* Core: Add possibility for task dialogs to associate a view and be able to close when associated view is closed. * TaskImage: Use task dialog view association. * Sketcher: Use task dialog view association. Preventing crash (https://github.com/FreeCAD/FreeCAD/issues/16702) * EditableDatumLabel: Use QPointer to prevent crash
This commit is contained in:
@@ -679,9 +679,7 @@ TaskImageDialog::TaskImageDialog(Image::ImagePlane* obj)
|
||||
{
|
||||
addTaskBox(Gui::BitmapFactory().pixmap("image-plane"), widget);
|
||||
|
||||
auto doc = obj->getDocument();
|
||||
setDocumentName(doc->getName());
|
||||
setAutoCloseOnDeletedDocument(true);
|
||||
associateToObject3dView(obj);
|
||||
}
|
||||
|
||||
void TaskImageDialog::open()
|
||||
|
||||
Reference in New Issue
Block a user