Commit b21e6beb authored by Ken Edmundson's avatar Ken Edmundson
Browse files

PROG: Modified loadBundleSolutionInfo method to add the BundleSolutionInfo's...

PROG: Modified loadBundleSolutionInfo method to add the BundleSolutionInfo's output control id to the project member variable m_idToControlMap.
parent 476fd45f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1102,13 +1102,18 @@ namespace Isis {

  /**
   * Loads bundle solution info into project
   *
   * @param BundleSolutionInfo
   */
  void Project::loadBundleSolutionInfo(BundleSolutionInfo *bundleSolutionInfo) {
    m_bundleSolutionInfo->append(bundleSolutionInfo);

    // add BundleSolutionInfo to project's m_idToBundleSolutionInfoMap
    (*m_idToBundleSolutionInfoMap)[bundleSolutionInfo->id()] = bundleSolutionInfo;

    // add BundleSolutionInfo's control to project's m_idToControlMap
    (*m_idToControlMap)[bundleSolutionInfo->control()->id()] = bundleSolutionInfo->control();

    emit bundleSolutionInfoAdded(bundleSolutionInfo);
  }

@@ -2904,6 +2909,7 @@ namespace Isis {
    else if (localName == "results") {
      foreach (BundleSolutionInfo *bundleInfo, m_bundleSolutionInfos) {
        m_project->addBundleSolutionInfo(bundleInfo);

        // If BundleSolutionInfo contains adjusted images, add to the project id map.
        if (bundleInfo->adjustedImages().count()) {
          foreach (ImageList *adjustedImageList, bundleInfo->adjustedImages()) {
+3 −0
Original line number Diff line number Diff line
@@ -229,6 +229,9 @@ namespace Isis {
   *                           activeControl and activeImageList when returning a default value.
   *                           This ensures that all the proper error checking is handled and
   *                           prevents duplicate code.
   *   @history 2018-03-23 Ken Edmundson - Modified loadBundleSolutionInfo method to add the
   *                           BundleSolutionInfo's output control id to the project member variable
   *                           m_idToControlMap.
   */
  class Project : public QObject {
    Q_OBJECT