Showing with 8 additions and 0 deletions.
  1. +3 −0 src/app/qgscustomprojectiondialog.cpp
  2. +5 −0 src/core/qgscrscache.cpp
3 changes: 3 additions & 0 deletions src/app/qgscustomprojectiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ bool QgsCustomProjectionDialog::deleteCRS( QString id )
QgsDebugMsg( QString( "failed to remove CRS from database in custom projection dialog: %1 [%2]" ).arg( mySql ).arg( sqlite3_errmsg( myDatabase ) ) );
}
sqlite3_close( myDatabase );

QgsCRSCache::instance()->updateCRSCache( QString( "USER:%1" ).arg( id ) );

return myResult == SQLITE_OK;
}

Expand Down
5 changes: 5 additions & 0 deletions src/core/qgscrscache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ void QgsCRSCache::updateCRSCache( const QString& authid )
{
mCRS.insert( authid, s );
}
else
{
mCRS.remove( authid );
}

QgsCoordinateTransformCache::instance()->invalidateCrs( authid );
}

Expand Down