summaryrefslogtreecommitdiffstats
path: root/configuredivecomputer.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-07 23:32:08 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-08 08:38:50 -0800
commitac207ee5ff60794c477d6d96c81645c4fc5b1994 (patch)
treed0ff2fa7e903ed154266f486d5466f022826600d /configuredivecomputer.cpp
parenta696da91469e117301eaca234ed968a4ba3481cc (diff)
downloadsubsurface-ac207ee5ff60794c477d6d96c81645c4fc5b1994.tar.gz
Emit the successful message the right way
The successful message was emitted in a some what older way then the other messages so it was always emitted, even on error. 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.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp
index ad4430cf1..769189b26 100644
--- a/configuredivecomputer.cpp
+++ b/configuredivecomputer.cpp
@@ -556,7 +556,10 @@ void ConfigureDiveComputer::setError(QString err)
void ConfigureDiveComputer::readThreadFinished()
{
setState(DONE);
- emit readFinished();
+ if (readThread->lastError.isEmpty()) {
+ //No error
+ emit message(tr("Dive computer details read successfully"));
+ }
}
void ConfigureDiveComputer::writeThreadFinished()