Commit a49dfc0f authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Tomaz Canabrava
Browse files

SSH Plugin: Don't keep the old profile when no profile is set

parent c02168f4
Pipeline #204295 passed with stage
in 3 minutes and 28 seconds
......@@ -246,7 +246,11 @@ void SSHManagerTreeWidget::editSshInfo()
ui->name->setText(data.name);
ui->port->setText(data.port);
ui->sshkey->setText(data.sshKey);
ui->profile->setCurrentText(data.profileName);
if (data.profileName.isEmpty()) {
ui->profile->setCurrentIndex(0);
} else {
ui->profile->setCurrentText(data.profileName);
}
ui->username->setText(data.username);
ui->useSshConfig->setCheckState(data.useSshConfig ? Qt::Checked : Qt::Unchecked);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment