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