Skip to content

Commit

Permalink
Supporting all backup files formats
Browse files Browse the repository at this point in the history
  • Loading branch information
limpkin authored Apr 24, 2018
1 parent 725c535 commit 8c1eb6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MPDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5065,6 +5065,11 @@ bool MPDevice::readExportFile(const QByteArray &fileData, QString &errorString)
return false;
}
}
else if (encryptionMethod == "none")
{
/* Legacy, not generated anymore */
return readExportPayload(QJsonDocument::fromJson(importFile.value("payload").toString().toUtf8()).array(), errorString);
}
else
{
errorString = "Unknown Encryption Method";
Expand Down

0 comments on commit 8c1eb6d

Please sign in to comment.