Update src/providers/gpx/qgsgpxsourceselect.cpp

Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
This commit is contained in:
Nyall Dawson 2023-06-28 07:42:10 +10:00
parent a3e06229ec
commit 1b76bc8fe2

View File

@ -65,9 +65,9 @@ void QgsGpxSourceSelect::addButtonClicked()
Q_NOWARN_DEPRECATED_PUSH
emit addVectorLayer( mGpxPath + "?type=track",
fileInfo.baseName() + ", tracks", QStringLiteral( "gpx" ) );
Q_NOWARN_DEPRECATED_POP
emit addLayer( Qgis::LayerType::Vector, mGpxPath + "?type=track",
fileInfo.baseName() + ", tracks", QStringLiteral( "gpx" ) );
Q_NOWARN_DEPRECATED_POP
}
if ( cbGPXRoutes->isChecked() )
{