Dereference the right pointer in fw update slot

This fixes a copy-paste error, dereferencing the wrong pointer in the
slot that gets called when the firmware update thread has run.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-10-21 23:21:15 +02:00 committed by Dirk Hohndel
parent 581288fb46
commit eebb335a0c

View file

@ -571,7 +571,7 @@ void ConfigureDiveComputer::writeThreadFinished()
void ConfigureDiveComputer::firmwareThreadFinished()
{
setState(DONE);
if (resetThread->lastError.isEmpty()) {
if (firmwareThread->lastError.isEmpty()) {
//No error
emit message(tr("Device firmware successfully updated"));
}