aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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