Loading isis/src/qisis/objs/Footprint2DView/Footprint2DView.cpp +5 −8 Original line number Original line Diff line number Diff line Loading @@ -306,11 +306,7 @@ namespace Isis { /** /** * A slot function that is called when directory emits a siganl that an active * A slot function that is called when directory emits a siganl that an active * control network is set. It enables the control network editor tool in the * control network is set. It enables the control network editor tool in the toolpad. * toolpad. * We do not load the network here because the network does not open until * the tool is beng used. This is done in MosaicControlNetTool::updateTool() and * is connected in MosaicTool. * * * @param value The boolean that holds if a control network has been set. * @param value The boolean that holds if a control network has been set. */ */ Loading @@ -318,12 +314,13 @@ namespace Isis { foreach (QAction *action, m_toolPad->actions()) { foreach (QAction *action, m_toolPad->actions()) { if (action->toolTip() == "Control Net (c)") { if (action->toolTip() == "Control Net (c)") { action->setEnabled(value); action->setEnabled(value); MosaicControlNetTool *cnetTool = if (value) { static_cast<MosaicControlNetTool *>(m_controlNetToolAction->parent()); MosaicControlNetTool *cnetTool = static_cast<MosaicControlNetTool *>(action->parent()); cnetTool->loadNetwork(); cnetTool->loadNetwork(); } } } } } } } /** /** Loading Loading
isis/src/qisis/objs/Footprint2DView/Footprint2DView.cpp +5 −8 Original line number Original line Diff line number Diff line Loading @@ -306,11 +306,7 @@ namespace Isis { /** /** * A slot function that is called when directory emits a siganl that an active * A slot function that is called when directory emits a siganl that an active * control network is set. It enables the control network editor tool in the * control network is set. It enables the control network editor tool in the toolpad. * toolpad. * We do not load the network here because the network does not open until * the tool is beng used. This is done in MosaicControlNetTool::updateTool() and * is connected in MosaicTool. * * * @param value The boolean that holds if a control network has been set. * @param value The boolean that holds if a control network has been set. */ */ Loading @@ -318,12 +314,13 @@ namespace Isis { foreach (QAction *action, m_toolPad->actions()) { foreach (QAction *action, m_toolPad->actions()) { if (action->toolTip() == "Control Net (c)") { if (action->toolTip() == "Control Net (c)") { action->setEnabled(value); action->setEnabled(value); MosaicControlNetTool *cnetTool = if (value) { static_cast<MosaicControlNetTool *>(m_controlNetToolAction->parent()); MosaicControlNetTool *cnetTool = static_cast<MosaicControlNetTool *>(action->parent()); cnetTool->loadNetwork(); cnetTool->loadNetwork(); } } } } } } } /** /** Loading