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 <[email protected]> --- 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 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
