Commit c6abd37c authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Made a quick fix to FootPrint2DView.

parent 57572534
Loading
Loading
Loading
Loading
+5 −8
Original line number Original line Diff line number Diff line
@@ -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.
   */
   */
@@ -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();
        }
        }
      }
      }
    }
    }
  }




  /**
  /**