Fixes #567
This commit is contained in:
@@ -17,7 +17,7 @@ ModelEdit::ModelEdit(RadioData & radioData, int modelId, bool openWizard, bool i
|
|||||||
ui(new Ui::ModelEdit),
|
ui(new Ui::ModelEdit),
|
||||||
modelId(modelId),
|
modelId(modelId),
|
||||||
model(radioData.models[modelId]),
|
model(radioData.models[modelId]),
|
||||||
generalSettings(generalSettings)
|
generalSettings(radioData.generalSettings)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
QSettings settings("companion", "companion");
|
QSettings settings("companion", "companion");
|
||||||
@@ -32,7 +32,6 @@ ModelEdit::ModelEdit(RadioData & radioData, int modelId, bool openWizard, bool i
|
|||||||
if (GetEepromInterface()->getCapability(CustomFunctions))
|
if (GetEepromInterface()->getCapability(CustomFunctions))
|
||||||
addTab(new CustomFunctionsPanel(this, model, radioData.generalSettings), tr("Assignable Functions"));
|
addTab(new CustomFunctionsPanel(this, model, radioData.generalSettings), tr("Assignable Functions"));
|
||||||
addTab(new Curves(this, model), tr("Curves"));
|
addTab(new Curves(this, model), tr("Curves"));
|
||||||
// TODO remove this capability if (!GetEepromInterface()->getCapability(FSSwitch))
|
|
||||||
if (GetEepromInterface()->getCapability(Telemetry) & TM_HASTELEMETRY)
|
if (GetEepromInterface()->getCapability(Telemetry) & TM_HASTELEMETRY)
|
||||||
addTab(new TelemetryPanel(this, model), tr("Telemetry"));
|
addTab(new TelemetryPanel(this, model), tr("Telemetry"));
|
||||||
}
|
}
|
||||||
@@ -44,8 +43,8 @@ ModelEdit::~ModelEdit()
|
|||||||
|
|
||||||
void ModelEdit::closeEvent(QCloseEvent *event)
|
void ModelEdit::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
QSettings settings("companion", "companion");
|
QSettings settings("companion", "companion");
|
||||||
settings.setValue("modelEditGeometry", saveGeometry());
|
settings.setValue("modelEditGeometry", saveGeometry());
|
||||||
}
|
}
|
||||||
|
|
||||||
class VerticalScrollArea : public QScrollArea
|
class VerticalScrollArea : public QScrollArea
|
||||||
|
|||||||
Reference in New Issue
Block a user