Gui: add virtual method 'closed' to TaskDialog that is called when deleting a dialog

This commit is contained in:
wmayer
2021-02-05 16:36:19 +01:00
parent f5f1f476f1
commit 8f65602cef
3 changed files with 8 additions and 0 deletions

View File

@@ -79,6 +79,11 @@ void TaskDialog::open()
}
void TaskDialog::closed()
{
}
void TaskDialog::clicked(int)
{

View File

@@ -103,6 +103,8 @@ public:
public:
/// is called by the framework when the dialog is opened
virtual void open();
/// is called by the framework when the dialog is closed
virtual void closed();
/// is called by the framework if a button is clicked which has no accept or reject role
virtual void clicked(int);
/// is called by the framework if the dialog is accepted (Ok)

View File

@@ -651,6 +651,7 @@ void TaskView::removeDialog(void)
addTaskWatcher();
if (remove) {
remove->closed();
remove->emitDestructionSignal();
delete remove;
}