+ disconnect boost signals on destruction
This commit is contained in:
@@ -409,6 +409,8 @@ TaskView::~TaskView()
|
||||
{
|
||||
connectApplicationActiveDocument.disconnect();
|
||||
connectApplicationDeleteDocument.disconnect();
|
||||
connectApplicationUndoDocument.disconnect();
|
||||
connectApplicationRedoDocument.disconnect();
|
||||
Gui::Selection().Detach(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,9 +63,10 @@ WorkflowManager::WorkflowManager() {
|
||||
}
|
||||
|
||||
WorkflowManager::~WorkflowManager() {
|
||||
// won't they will be disconnected on destruction?
|
||||
// they won't be automatically disconnected on destruction!
|
||||
connectNewDocument.disconnect ();
|
||||
connectFinishRestoreDocument.disconnect ();
|
||||
connectDeleteDocument.disconnect ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user