Commit d29edce4 authored by chrisryancombs's avatar chrisryancombs
Browse files

Fixed bug with validator enabling apply button with no images selected.

parent 8747addc
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1494,8 +1494,10 @@ namespace Isis {
    }

    m_ui->okCloseButtonBox->button(QDialogButtonBox::Ok)->setEnabled(tablesAreValid);
    if (!m_ui->treeView->selectionModel()->selectedRows().isEmpty()) {
      m_ui->applySettingsPushButton->setEnabled(tablesAreValid);
    }
  }


  /**
@@ -1756,6 +1758,13 @@ namespace Isis {

  void JigsawSetupDialog::treeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) {
    m_ui->applySettingsPushButton->setEnabled(!selected.isEmpty());

    // QModelIndex displayIndex = selected.indexes()[0];

    // if (displayIndex) {
    //   QModelIndex sourceIndex = m_ui->treeView->model()->mapToSource(displayIndex);

    // } 
  }