From c96afeacf42124fb3463200754ebdff16b2b0cb8 Mon Sep 17 00:00:00 2001 From: Kilrah Date: Sat, 12 Oct 2019 09:56:16 +0200 Subject: [PATCH] Notify about JTX data not supported --- companion/src/mdichild.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/companion/src/mdichild.cpp b/companion/src/mdichild.cpp index 4d0d7dcb8..ebb5c0492 100644 --- a/companion/src/mdichild.cpp +++ b/companion/src/mdichild.cpp @@ -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("

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.

\ +

Importing JumperTX data into OpenTX 2.3 is not supported and dangerous.

\ +

It is unfortunately not possible for us to differentiate JumperTX data from legitimate FrSky X10 data, but You should only continue here if the file you opened comes from a real FrSky X10.

\ +

Do you really want to continue?

")); + 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("

Currently selected radio type (%1) is not compatible with file %3 (from %2), models and settings need to be converted.

").arg(Boards::getBoardName(to)).arg(Boards::getBoardName(from)).arg(userFriendlyCurrentFile()); if (newFile) { q.append(tr("Do you wish to continue with the conversion?"));