diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-05-27 21:19:11 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-27 15:37:37 -0700 |
commit | 4124052b38f4c2e2f8bef40ebc74d6bbd35382af (patch) | |
tree | 9b3b8a512f072afaba66d13856a1b542165ede62 /configuredivecomputer.cpp | |
parent | f7be6daacc91fd17291398d070825a49f6991ba1 (diff) | |
download | subsurface-4124052b38f4c2e2f8bef40ebc74d6bbd35382af.tar.gz |
Remove the lastError from DeviceThreads
There is no reason for the DeviceThreads to keep a copy of the last
error around, so this removes that code.
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.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 432aec807..742736d87 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -547,7 +547,7 @@ void ConfigureDiveComputer::setError(QString err) void ConfigureDiveComputer::readThreadFinished() { setState(DONE); - if (readThread->lastError.isEmpty()) { + if (lastError.isEmpty()) { //No error emit message(tr("Dive computer details read successfully")); } @@ -556,7 +556,7 @@ void ConfigureDiveComputer::readThreadFinished() void ConfigureDiveComputer::writeThreadFinished() { setState(DONE); - if (writeThread->lastError.isEmpty()) { + if (lastError.isEmpty()) { //No error emit message(tr("Setting successfully written to device")); } @@ -565,7 +565,7 @@ void ConfigureDiveComputer::writeThreadFinished() void ConfigureDiveComputer::firmwareThreadFinished() { setState(DONE); - if (firmwareThread->lastError.isEmpty()) { + if (lastError.isEmpty()) { //No error emit message(tr("Device firmware successfully updated")); } @@ -574,7 +574,7 @@ void ConfigureDiveComputer::firmwareThreadFinished() void ConfigureDiveComputer::resetThreadFinished() { setState(DONE); - if (resetThread->lastError.isEmpty()) { + if (lastError.isEmpty()) { //No error emit message(tr("Device settings successfully reset")); } |