Commit 3c518040 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Do not allow to remove ssh entries from ssh/config

If the user removed those entries, they would be repopulated
later on.
parent dc6cb83e
Pipeline #103512 passed with stage
in 2 minutes and 18 seconds
......@@ -382,7 +382,8 @@ void SSHManagerTreeWidget::handleTreeClick(Qt::MouseButton btn, const QModelInde
const auto item = d->model->itemFromIndex(sourceIdx);
const auto data = item->data(SSHManagerModel::SSHRole).value<SSHConfigurationData>();
ui->btnEdit->setEnabled(true);
ui->btnRemove->setEnabled(!data.importedFromSshConfig);
ui->btnRemove->setToolTip(data.importedFromSshConfig ? i18n("You can't remove an automatically added entry.") : i18n("Remove selected entry"));
if (ui->sshInfoPane->isVisible()) {
handleImportedData(data.importedFromSshConfig);
editSshInfo();
......
Markdown is supported
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