Skip to content

Commit

Permalink
Update qgsappgpsconnection.cpp
Browse files Browse the repository at this point in the history
good advice of @nyalldawson
  • Loading branch information
bettellam committed Dec 9, 2022
1 parent 4d69ca1 commit 0b9a358
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/gps/qgsappgpsconnection.cpp
Expand Up @@ -178,12 +178,7 @@ void QgsAppGpsConnection::disconnectGps()

void QgsAppGpsConnection::onTimeOut()
{
std::unique_ptr< QgsGpsConnection > oldConnection( mConnection );
mConnection = nullptr;

emit disconnected();
emit statusChanged( Qgis::GpsConnectionStatus::Disconnected );
emit fixStatusChanged( Qgis::GpsFixStatus::NoData );
disconnectGps();
emit connectionTimedOut();

QgisApp::instance()->statusBarIface()->clearMessage();
Expand Down

0 comments on commit 0b9a358

Please sign in to comment.