mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a696da9146
commit
ac207ee5ff
4 changed files with 4 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue