summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-25 09:37:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-02 08:04:49 -0700
commitfb26f6b0fa1a9a04e121d524f64c9dcf694fb47a (patch)
tree629ea45f66c6b59a92a84837ec11f7f65ef72300 /core
parent7fa25de58a3429c1103fcaec0c2e0e4a7ef22ccc (diff)
downloadsubsurface-fb26f6b0fa1a9a04e121d524f64c9dcf694fb47a.tar.gz
Avoid duplicate debug output from GPS module
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/gpslocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index c5b81e024..974b9636b 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -200,9 +200,10 @@ void GpsLocation::positionSourceError(QGeoPositionInfoSource::Error)
void GpsLocation::status(QString msg)
{
- qDebug() << msg;
if (showMessageCB)
(*showMessageCB)(qPrintable(msg));
+ else
+ qDebug() << msg;
}
int GpsLocation::getGpsNum() const