[PATCH 2/3] Dereference the right pointer in fw update slot
Anton Lundin
glance at acc.umu.se
Tue Oct 21 14:21:15 PDT 2014
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 at acc.umu.se>
---
configuredivecomputer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp
index 9a708ad..884b2dd 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"));
}
--
1.9.1
More information about the subsurface
mailing list