Notify about JTX data not supported

This commit is contained in:
Kilrah
2019-10-12 09:56:16 +02:00
parent 116fda8ee5
commit c96afeacf4
+17
View File
@@ -1457,6 +1457,23 @@ bool MdiChild::convertStorage(Board::Type from, Board::Type to, bool newFile)
{
QMessageBox::StandardButtons btns;
QMessageBox::StandardButton dfltBtn;
if (from == Board::BOARD_X10 && to == Board::BOARD_JUMPER_T16) {
QMessageBox msgBox;
msgBox.setWindowTitle(tr("WARNING"));
msgBox.setText(tr("<p>Due to the way Jumper have handled their JumperTX fork and firmware releases data integrity for settings from JumperTX cannot be trusted when migrating to OpenTX.</p> \
<p>Importing JumperTX data into OpenTX 2.3 is <b>not supported and dangerous.</b></p> \
<p>It is unfortunately not possible for us to differentiate JumperTX data from legitimate FrSky X10 data, but <b>You should only continue here if the file you opened comes from a real FrSky X10.</b></p> \
<p>Do you really want to continue?</p>"));
msgBox.setIcon(QMessageBox::Warning);
msgBox.addButton(QMessageBox::No);
msgBox.addButton(QMessageBox::Yes);
msgBox.setDefaultButton(QMessageBox::No);
if (msgBox.exec() == QMessageBox::No)
return false;
}
QString q = tr("<p><b>Currently selected radio type (%1) is not compatible with file %3 (from %2), models and settings need to be converted.</b></p>").arg(Boards::getBoardName(to)).arg(Boards::getBoardName(from)).arg(userFriendlyCurrentFile());
if (newFile) {
q.append(tr("Do you wish to continue with the conversion?"));