_manager = NULL;
}
-BL::SALOMEServices::~SALOMEServices()
+BL::SALOMEServices::~SALOMEServices() {}
+
+void
+BL::SALOMEServices::end()
{
+ if (!CORBA::is_nil(_salome_launcher))
+ _salome_launcher->removeObserver(_this());
if (_salome_naming_service)
delete _salome_naming_service;
if (_lcc)
// _salome_services is a servant
// POA wil destroy it at the end of the application
_salome_services = new BL::SALOMEServices();
- if (_salome_services->initNS() == false)
- DEBMSG("WARNING !!!!! SALOME IS NOT REACHABLE !!!!");
}
BL::GenericGui::~GenericGui()
{
DEBTRACE("Destroying BL::GenericGui");
+ _salome_services->end();
}
void
connect(_model, SIGNAL(rowsInserted(QModelIndex, int, int)), _summary, SLOT(rowsInserted(QModelIndex, int, int)));
connect(_model, SIGNAL(rowsRemoved(QModelIndex, int, int)), _summary, SLOT(rowsRemoved(QModelIndex, int, int)));
connect(_model, SIGNAL(itemChanged(QStandardItem*)), _summary, SLOT(itemChanged(QStandardItem*)));
+
+ if (_salome_services->initNS() == false)
+ DEBMSG("WARNING !!!!! SALOME IS NOT REACHABLE !!!!");
}
void