From eebb335a0c0da207e15267c2ae3d1140eb0b1b82 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Tue, 21 Oct 2014 23:21:15 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- configuredivecomputer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 9a708ad6e..884b2dd54 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -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")); } -- cgit v1.2.3-70-g09d2