Display problem in General Edit Dialog

This commit is contained in:
bsongis
2014-05-27 10:37:41 +02:00
parent 2be373900c
commit 84305a5a05
2 changed files with 389 additions and 401 deletions
+4 -3
View File
@@ -141,14 +141,15 @@ GeneralEdit::GeneralEdit(RadioData &radioData, QWidget *parent) :
if (!GetCurrentFirmware()->getCapability( HasPxxCountry)) {
ui->countrycode_label->hide();
ui->countrycode_CB->hide();
layout()->removeItem(ui->pxxCountry);
} else {
}
else {
ui->countrycode_CB->setCurrentIndex(g_eeGeneral.countryCode);
}
if (!GetCurrentFirmware()->getCapability( HasGeneralUnits)) {
ui->units_label->hide();
ui->units_CB->hide();
} else {
}
else {
ui->units_CB->setCurrentIndex(g_eeGeneral.imperial);
}