Fix config option reddit

This commit is contained in:
dsc 2021-05-10 22:57:28 +02:00
parent ac1ed1873a
commit fbca9c9340

View file

@ -47,6 +47,9 @@ Settings::Settings(QWidget *parent) :
connect(ui->comboBox_blockExplorer, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_blockExplorerChanged); connect(ui->comboBox_blockExplorer, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_blockExplorerChanged);
connect(ui->comboBox_redditFrontend, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_redditFrontendChanged); connect(ui->comboBox_redditFrontend, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_redditFrontendChanged);
// setup reddit combobox
ui->comboBox_redditFrontend->setCurrentText(config()->get(Config::redditFrontend).toString());
// setup preferred fiat currency combobox // setup preferred fiat currency combobox
QStringList fiatCurrencies; QStringList fiatCurrencies;
for (int index = 0; index < ui->comboBox_fiatCurrency->count(); index++) for (int index = 0; index < ui->comboBox_fiatCurrency->count(); index++)