Skip to content

Commit

Permalink
Disconnect listener in WorkspaceGroup before deleting self. Refs #5995
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Oct 24, 2012
1 parent 1f2594e commit 6198645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/API/src/WorkspaceGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ void WorkspaceGroup::print() const
for (auto itr = m_workspaces.begin(); itr != m_workspaces.end(); ++itr)
{
g_log.debug() << "Workspace name in group vector = " << (**itr).name() << std::endl;
//std::cerr << "Workspace name in group vector = " << (**itr).name() << std::endl;
}
}

Expand All @@ -200,6 +199,8 @@ void WorkspaceGroup::workspaceDeleteHandle(Mantid::API::WorkspacePostDeleteNotif
this->remove(deletedName);
if(isEmpty())
{
//We are about to get deleted so we don't want to recieve any notifications
observeADSNotifications(false);
AnalysisDataService::Instance().remove(this->getName());
}
}
Expand Down

0 comments on commit 6198645

Please sign in to comment.