Core: Image taskbox : close if document is closed.

This commit is contained in:
PaddleStroke
2024-07-15 16:41:20 +02:00
committed by Chris Hennes
parent 10ce67da0d
commit 29889bfd9a

View File

@@ -643,6 +643,10 @@ TaskImageDialog::TaskImageDialog(Image::ImagePlane* obj)
: widget{new TaskImage(obj)}
{
addTaskBox(Gui::BitmapFactory().pixmap("image-plane"), widget);
auto doc = obj->getDocument();
setDocumentName(doc->getName());
setAutoCloseOnDeletedDocument(true);
}
void TaskImageDialog::open()