Too early from this one
This commit is contained in:
@@ -104,7 +104,7 @@ void MdiChild::qSleep(int ms)
|
|||||||
void MdiChild::eepromInterfaceChanged()
|
void MdiChild::eepromInterfaceChanged()
|
||||||
{
|
{
|
||||||
ui->modelsList->refreshList();
|
ui->modelsList->refreshList();
|
||||||
ui->SimulateTxButton->setEnabled(firmware->getCapability(Simulation));
|
ui->SimulateTxButton->setEnabled(GetCurrentFirmware()/*firmware*/->getCapability(Simulation));
|
||||||
updateTitle();
|
updateTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ void MdiChild::modelEdit()
|
|||||||
QApplication::setOverrideCursor(Qt::WaitCursor);
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
checkAndInitModel( row );
|
checkAndInitModel( row );
|
||||||
ModelData &model = radioData.models[row - 1];
|
ModelData &model = radioData.models[row - 1];
|
||||||
ModelEdit *t = new ModelEdit(this, radioData, (row - 1), firmware);
|
ModelEdit *t = new ModelEdit(this, radioData, (row - 1), GetCurrentFirmware()/*firmware*/);
|
||||||
t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name);
|
t->setWindowTitle(tr("Editing model %1: ").arg(row) + model.name);
|
||||||
connect(t, SIGNAL(modified()), this, SLOT(setModified()));
|
connect(t, SIGNAL(modified()), this, SLOT(setModified()));
|
||||||
t->show();
|
t->show();
|
||||||
@@ -667,10 +667,10 @@ void MdiChild::print(int model, QString filename)
|
|||||||
PrintDialog * pd = NULL;
|
PrintDialog * pd = NULL;
|
||||||
|
|
||||||
if (model>=0 && !filename.isEmpty()) {
|
if (model>=0 && !filename.isEmpty()) {
|
||||||
pd = new PrintDialog(this, firmware, &radioData.generalSettings, &radioData.models[model], filename);
|
pd = new PrintDialog(this, GetCurrentFirmware()/*firmware*/, &radioData.generalSettings, &radioData.models[model], filename);
|
||||||
}
|
}
|
||||||
else if (ui->modelsList->currentRow() > 0) {
|
else if (ui->modelsList->currentRow() > 0) {
|
||||||
pd = new PrintDialog(this, firmware, &radioData.generalSettings, &radioData.models[ui->modelsList->currentRow()-1]);
|
pd = new PrintDialog(this, GetCurrentFirmware()/*firmware*/, &radioData.generalSettings, &radioData.models[ui->modelsList->currentRow()-1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pd) {
|
if (pd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user