Skip to content

Commit

Permalink
QSO Detail: Fixed issue when Sat-Name was always disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Dec 16, 2023
1 parent 041a44f commit 5c3310b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions ui/QSODetailDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,16 +556,17 @@ void QSODetailDialog::setReadOnlyMode(bool inReadOnly)
}
}

if ( !inReadOnly )
if ( ui->propagationModeEdit->currentText() != Data::instance()->propagationModeIDToText("SAT") )
{
if ( ui->propagationModeEdit->currentText() != Data::instance()->propagationModeIDToText("SAT") )
{
/* Do not enable sat fields when SAT prop is not selected */
ui->satModeEdit->setCurrentIndex(-1);
ui->satNameEdit->clear();
ui->satModeEdit->setEnabled(false);
ui->satNameEdit->setEnabled(false);
}
/* Do not enable sat fields when SAT prop is not selected */
ui->satModeEdit->setCurrentIndex(-1);
ui->satNameEdit->clear();
ui->satModeEdit->setEnabled(false);
ui->satNameEdit->setEnabled(false);
}
else
{
ui->satNameEdit->setEnabled(true);
}

editButton->setText((( inReadOnly) ? EDIT_BUTTON_TEXT : SAVE_BUTTON_TEXT ));
Expand Down

0 comments on commit 5c3310b

Please sign in to comment.