[Companion] OTX format bug with X9D boards

The files were always converted as X9D doesn't have its own FourCC
This commit is contained in:
Bertrand Songis
2017-01-25 15:32:30 +01:00
parent 362698484f
commit b53ec7392c
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -507,7 +507,7 @@ bool MdiChild::loadFile(const QString & filename, bool resetCurrentFile)
setCurrentFile(filename);
}
if (storage.getBoard() != getCurrentBoard()) {
if (!storage.isBoardCompatible(getCurrentBoard())) {
convertStorage(storage.getBoard(), getCurrentBoard());
}