Skip to content

Commit

Permalink
Always keep the wordlist combo box enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
snipfoo committed Aug 3, 2021
1 parent 25853c0 commit 7bfbd31
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/PasswordGeneratorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,12 +657,6 @@ void PasswordGeneratorWidget::updateGenerator()
static_cast<PassphraseGenerator::PassphraseWordCase>(m_ui->wordCaseComboBox->currentData().toInt()));

m_dicewareGenerator->setWordCount(m_ui->spinBoxWordCount->value());

if (m_ui->comboBoxWordList->count() > 1) {
m_ui->comboBoxWordList->setEnabled(true);
} else {
m_ui->comboBoxWordList->setEnabled(false);
}
const QVariant itemData = m_ui->comboBoxWordList->currentData();
if (static_cast<QMetaType::Type>(itemData.type()) == QMetaType::QString && !itemData.toString().isEmpty()) {
QString path = itemData.toString();
Expand All @@ -674,7 +668,6 @@ void PasswordGeneratorWidget::updateGenerator()
}
m_dicewareGenerator->setWordList(path);
}

m_dicewareGenerator->setWordSeparator(m_ui->editWordSeparator->text());

if (m_dicewareGenerator->isValid()) {
Expand Down

0 comments on commit 7bfbd31

Please sign in to comment.