Only convert storage if boards are actually different

This commit is contained in:
Andre Bernet
2017-01-30 11:03:42 +01:00
parent 00adc318ce
commit 5077b10274
+3 -1
View File
@@ -163,7 +163,9 @@ void MdiChild::onFirmwareChanged()
Firmware * previous = firmware;
firmware = getCurrentFirmware();
qDebug() << "onFirmwareChanged" << previous->getName() << "=>" << firmware->getName();
convertStorage(previous->getBoard(), firmware->getBoard());
if (previous->getBoard() != firmware->getBoard()) {
convertStorage(previous->getBoard(), firmware->getBoard());
}
}
void MdiChild::convertStorage(Board::Type from, Board::Type to)