fix(cpn): Default calibration values for 6POS switch (#4271)
This commit is contained in:
@@ -1277,6 +1277,9 @@ bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)
|
||||
setCurrentFile(filename);
|
||||
}
|
||||
|
||||
if (radioData.generalSettings.fix6POSCalibration())
|
||||
setModified();
|
||||
|
||||
// set after successful import
|
||||
if (getStorageType(filename) == STORAGE_TYPE_YML)
|
||||
setModified();
|
||||
@@ -1664,6 +1667,9 @@ void MdiChild::openModelTemplate(int row)
|
||||
QMessageBox::warning(this, CPN_STR_TTL_WARNING, warning);
|
||||
}
|
||||
|
||||
if (radioData.generalSettings.fix6POSCalibration())
|
||||
setModified();
|
||||
|
||||
radioData.models[row] = data.models[0];
|
||||
|
||||
// reset module bindings
|
||||
|
||||
Reference in New Issue
Block a user