We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 527cdd7 commit 2394e50Copy full SHA for 2394e50
src/app/gps/qgsgpsinformationwidget.cpp
@@ -346,10 +346,7 @@ void QgsGPSInformationWidget::connected( QgsGPSConnection *conn )
346
void QgsGPSInformationWidget::disconnectGps()
347
{
348
QgsGPSConnectionRegistry::instance()->unregisterConnection( mNmea );
349
- if ( mNmea )
350
- {
351
- delete mNmea;
352
- }
+ delete mNmea;
353
mGPSTextEdit->append( tr( "Disconnected..." ) );
354
mConnectButton->setChecked( false );
355
mConnectButton->setText( tr( "Connect" ) );
0 commit comments