Commit 4f5832cb authored by chrisryancombs's avatar chrisryancombs
Browse files

Added disabling of BOSS apply button when no images selected.

parent f5d9907e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1683,6 +1683,11 @@ namespace Isis {
          m_ui->treeView->setRootIndex(QModelIndex());
         }
  
    connect(m_ui->treeView->selectionModel(), 
            SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), 
            this, 
            SLOT(treeViewSelectionChanged(const QItemSelection&,const QItemSelection&)));


    // Try to loop through the view here to add the "groups" so they aren't part of the model

@@ -1693,6 +1698,12 @@ namespace Isis {
  }


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



  /**
   * Slot for handling the Observation Solve Settings tab's Apply button. Retrieve's the selected
   * ProjectItems and adds their images' serial numbers to a new BundleObservationSolveSettings
+2 −0
Original line number Diff line number Diff line
@@ -160,6 +160,8 @@ namespace Isis {
    public slots:
    void slotTextChanged(const QString &text);
    void checkIsValid();
    void treeViewSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);



    private:
+3 −0
Original line number Diff line number Diff line
@@ -1345,6 +1345,9 @@ Valid Range: 1.0e-10 to 1.0e+10</string>
           </item>
           <item row="3" column="1">
            <widget class="QPushButton" name="applySettingsPushButton">
             <property name="enabled">
              <bool>false</bool>
             </property>
             <property name="text">
              <string>Apply Settings to Selected Images</string>
             </property>