This commit is contained in:
parent
b9e9fc9324
commit
e2c5a02a72
|
@ -192,11 +192,13 @@ void hg_settingdialog::create_scheme_management_ui(QVBoxLayout* layout)
|
|||
layout->addSpacing(30);
|
||||
for(int i = 1; i < (int)schemes_->schemes.size(); ++i)
|
||||
{
|
||||
comb_->addItem(QString::fromStdString(schemes_->schemes[i].name));
|
||||
std::string schemName = schemes_->schemes[i].name;
|
||||
comb_->addItem(QString::fromStdString(m_config->transfer_en_name_2_cn_title(schemName)));
|
||||
if(schemes_->cur_scheme == i - 1)
|
||||
{
|
||||
enabled = true;
|
||||
comb_->setCurrentText(QString::fromStdString(schemes_->schemes[i].name));
|
||||
std::string schemName2 = schemes_->schemes[i].name;
|
||||
comb_->setCurrentText(QString::fromStdString(m_config->transfer_en_name_2_cn_title(schemName2)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue