aboutsummaryrefslogtreecommitdiffstats
path: root/configuredivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-10-21 23:21:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-21 14:41:58 -0700
commiteebb335a0c0da207e15267c2ae3d1140eb0b1b82 (patch)
tree59dd31049bf255030b0cbf5e0184f33537b4c110 /configuredivecomputer.cpp
parent581288fb469f0c930293330f4797d2c15e93362c (diff)
downloadsubsurface-eebb335a0c0da207e15267c2ae3d1140eb0b1b82.tar.gz
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>
Diffstat (limited to 'configuredivecomputer.cpp')
-rw-r--r--configuredivecomputer.cpp2
1 files changed, 1 insertions, 1 deletions
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"));
}