Settings: set localmonero combobox correctly

This commit is contained in:
tobtoht 2022-03-02 16:49:43 +01:00
parent 3d074460e1
commit 2f6f73383c
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -102,6 +102,7 @@ Settings::Settings(QSharedPointer<AppContext> ctx, QWidget *parent)
});
// Links tab
this->setupLocalMoneroFrontendCombobox();
connect(ui->combo_blockExplorer, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_blockExplorerChanged);
connect(ui->combo_redditFrontend, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_redditFrontendChanged);
connect(ui->combo_localMoneroFrontend, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &Settings::comboBox_localMoneroFrontendChanged);
@ -109,8 +110,6 @@ Settings::Settings(QSharedPointer<AppContext> ctx, QWidget *parent)
ui->combo_blockExplorer->setCurrentIndex(ui->combo_blockExplorer->findText(config()->get(Config::blockExplorer).toString()));
ui->combo_redditFrontend->setCurrentIndex(ui->combo_redditFrontend->findText(config()->get(Config::redditFrontend).toString()));
this->setupLocalMoneroFrontendCombobox();
this->adjustSize();
}