+ disconnect boost signals on destruction
This commit is contained in:
parent
099ceebec1
commit
cba54c51ad
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user