void FusionLayersSelectPage::setViews(SpatialDataView* pPrimary, SpatialDataView* pSecondary) { vector<Layer*> layers; vector<Layer*>::iterator it; SpatialDataView* pOldPrimaryView = getPrimaryView(); if (pOldPrimaryView != NULL) { LayerList* pLayerList = pOldPrimaryView->getLayerList(); if (pLayerList != NULL) { pLayerList->detach(SIGNAL_NAME(Subject, Deleted), Slot(this, &FusionLayersSelectPage::layerListDeleted)); pLayerList->detach(SIGNAL_NAME(Subject, Modified), Slot(this, &FusionLayersSelectPage::layerListModified)); } } FusionPage::setViews(pPrimary, pSecondary); if (pPrimary != NULL) { LayerList* pLayerList = pPrimary->getLayerList(); if (pLayerList != NULL) { pLayerList->attach(SIGNAL_NAME(Subject, Deleted), Slot(this, &FusionLayersSelectPage::layerListDeleted)); pLayerList->attach(SIGNAL_NAME(Subject, Modified), Slot(this, &FusionLayersSelectPage::layerListModified)); } } }