SSA Agent: remove redundant clear() on attachment combo boxes

attachmentCertificateComboBox and attachmentComboBox are
already cleared in updateSSHAgentAttachments().
This commit is contained in:
Alexandre Petit 2026-03-09 12:40:08 +01:00
parent 3d9ef5c4ed
commit 7916050b39
No known key found for this signature in database

View file

@ -647,13 +647,11 @@ void EditEntryWidget::setSSHAgentSettings()
m_sshAgentUi->lifetimeCheckBox->setChecked(m_sshAgentSettings.useLifetimeConstraintWhenAdding());
m_sshAgentUi->lifetimeSpinBox->setValue(m_sshAgentSettings.lifetimeConstraintDuration());
QSignalBlocker sshAgent_attachmentComboBox_Blocker(m_sshAgentUi->attachmentComboBox);
m_sshAgentUi->attachmentComboBox->clear();
m_sshAgentUi->addToAgentButton->setEnabled(false);
m_sshAgentUi->removeFromAgentButton->setEnabled(false);
m_sshAgentUi->copyToClipboardButton->setEnabled(false);
m_sshAgentUi->addCertificateToAgentCheckBox->setChecked(m_sshAgentSettings.useCertificate());
QSignalBlocker sshAgent_attachmentCertificateComboBox_Blocker(m_sshAgentUi->attachmentCertificateComboBox);
m_sshAgentUi->attachmentCertificateComboBox->clear(); // AlexpFr: why? attachmentCertificateComboBox init in updateSSHAgentAttachments(
}
void EditEntryWidget::updateSSHAgent()