SSH: Fix DSA key creation

We forgot to fill the key size combo box for this type of key.

Change-Id: I30cb1a7996d03c5eb139aa65f43810e1014472c7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Christian Kandeler
2017-05-05 09:57:32 +02:00
parent 3691fbb8f8
commit 71c5080d15

View File

@@ -77,6 +77,8 @@ void SshKeyCreationDialog::keyTypeChanged()
keySizes << QLatin1String("1024") << QLatin1String("2048") << QLatin1String("4096");
else if (m_ui->ecdsa->isChecked())
keySizes << QLatin1String("256") << QLatin1String("384") << QLatin1String("521");
else if (m_ui->dsa->isChecked())
keySizes << QLatin1String("1024");
m_ui->comboBox->addItems(keySizes);
if (!keySizes.isEmpty())
m_ui->comboBox->setCurrentIndex(0);