Skip to content

Commit 3f6d442

Browse files
authored
Merge pull request #647 from deXol/develop
Prevent ble backup file import into the standard mini
2 parents 986a1a7 + 830300e commit 3f6d442

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/MPDevice.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5134,6 +5134,13 @@ bool MPDevice::readExportPayload(QJsonArray dataArray, QString &errorString)
51345134
return false;
51355135
}
51365136

5137+
if (isBleExport && !isBLE())
5138+
{
5139+
qWarning() << "Cannot use BLE export file for mini";
5140+
errorString = "Selected File Is A BLE Backup";
5141+
return false;
5142+
}
5143+
51375144
/* Know which bundle we're dealing with */
51385145
if (deviceVersion == "mooltipass")
51395146
{

0 commit comments

Comments
 (0)