Assembly: Remove solver msg when file is closed (#27210)
This commit is contained in:
@@ -130,6 +130,8 @@ ViewProviderAssembly::ViewProviderAssembly()
|
||||
ViewProviderAssembly::~ViewProviderAssembly()
|
||||
{
|
||||
m_preTransactionConn.disconnect();
|
||||
|
||||
removeTaskSolver();
|
||||
};
|
||||
|
||||
QIcon ViewProviderAssembly::getIcon() const
|
||||
@@ -354,11 +356,7 @@ void ViewProviderAssembly::unsetEdit(int mode)
|
||||
);
|
||||
}
|
||||
|
||||
Gui::TaskView::TaskView* taskView = Gui::Control().taskPanel();
|
||||
if (taskView) {
|
||||
// Waiting for the solver to support reporting information.
|
||||
taskView->removeContextualPanel(taskSolver);
|
||||
}
|
||||
removeTaskSolver();
|
||||
|
||||
connectSolverUpdate.disconnect();
|
||||
connectActivatedVP.disconnect();
|
||||
@@ -368,6 +366,15 @@ void ViewProviderAssembly::unsetEdit(int mode)
|
||||
ViewProviderPart::unsetEdit(mode);
|
||||
}
|
||||
|
||||
void ViewProviderAssembly::removeTaskSolver()
|
||||
{
|
||||
Gui::TaskView::TaskView* taskView = Gui::Control().taskPanel();
|
||||
if (taskView) {
|
||||
// Waiting for the solver to support reporting information.
|
||||
taskView->removeContextualPanel(taskSolver);
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderAssembly::slotActivatedVP(const Gui::ViewProviderDocumentObject* vp, const char* name)
|
||||
{
|
||||
if (name && strcmp(name, ASSEMBLYKEY) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user