2022-09-20 Fred Gleason <fredg@paravelsystems.com>

* Tweaked the credentials section in the 'Edit Upload' and
	'Edit Download' dialogs in rdcatch(1) to indicate whether a
	'Password' or a 'Passphrase' is required.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-09-20 12:14:21 -04:00
parent de1908cb53
commit e2b45d83f9
5 changed files with 36 additions and 0 deletions

View File

@@ -100,6 +100,8 @@ EditDownload::EditDownload(QString *filter,QWidget *parent)
edit_use_id_file_label->setFont(labelFont());
edit_use_id_file_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
edit_use_id_file_check=new QCheckBox(this);
connect(edit_use_id_file_check,SIGNAL(toggled(bool)),
this,SLOT(useIdFileData(bool)));
//
// Destination
@@ -318,10 +320,23 @@ void EditDownload::urlChangedData(const QString &str)
if((scheme=="sftp")&&(!rda->station()->sshIdentityFile().isEmpty())) {
edit_use_id_file_check->setEnabled(true);
edit_use_id_file_label->setEnabled(true);
useIdFileData(edit_use_id_file_check->isChecked());
}
else {
edit_use_id_file_check->setDisabled(true);
edit_use_id_file_label->setDisabled(true);
useIdFileData(false);
}
}
void EditDownload::useIdFileData(bool state)
{
if(state) {
edit_password_label->setText(tr("Passphrase")+":");
}
else {
edit_password_label->setText(tr("Password")+":");
}
}