Skip to content

Commit

Permalink
Bugfix for gps info widget crashing. Gettings to all in Piza
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13089 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 19, 2010
1 parent f534fbb commit ba368c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/gps/qgsgpsinformationwidget.cpp
Expand Up @@ -346,7 +346,10 @@ void QgsGPSInformationWidget::connected( QgsGPSConnection *conn )
void QgsGPSInformationWidget::disconnectGps()
{
QgsGPSConnectionRegistry::instance()->unregisterConnection( mNmea );
delete mNmea;
if ( mNmea )
{
delete mNmea;
}
mGPSTextEdit->append( tr( "Disconnected..." ) );
mConnectButton->setChecked( false );
mConnectButton->setText( tr( "Connect" ) );
Expand Down

0 comments on commit ba368c0

Please sign in to comment.