Skip to content

Commit

Permalink
Fix FTP/CP view update
Browse files Browse the repository at this point in the history
.. the CP history table update was not taking into
   account the useCPforFTP selection and mucking up
   the table view.

Fixes #1690
  • Loading branch information
liversedge committed Nov 22, 2015
1 parent a3c5e2c commit d0b155c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Pages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3805,7 +3805,9 @@ CPPage::addClicked()
add->setText(column++, QString("%1").arg(cpEdit->value()));

// FTP
add->setText(column++, QString("%1").arg(ftpEdit->value()));
if (useCPForFTPCombo->currentIndex() == 1) {
add->setText(column++, QString("%1").arg(ftpEdit->value()));
}

// W'
add->setText(column++, QString("%1").arg(wp));
Expand Down Expand Up @@ -3851,8 +3853,11 @@ CPPage::editClicked()
zonePage->zones.setCP(index, cp);
edit->setText(columns++, QString("%1").arg(cp));

zonePage->zones.setFTP(index, ftp);
edit->setText(columns++, QString("%1").arg(ftp));
// show FTP if we use FTP for Coggan Metrics
if (useCPForFTPCombo->currentIndex() == 1) {
zonePage->zones.setFTP(index, ftp);
edit->setText(columns++, QString("%1").arg(ftp));
}

// W'
zonePage->zones.setWprime(index, wp);
Expand Down

0 comments on commit d0b155c

Please sign in to comment.