Skip to content

Commit

Permalink
Fix drag and drop of files to georeferencer window
Browse files Browse the repository at this point in the history
Fixes #49175
  • Loading branch information
nyalldawson committed Sep 27, 2022
1 parent e689e2d commit 056ee1f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/app/georeferencer/qgsgeorefmainwindow.cpp
Expand Up @@ -275,6 +275,23 @@ void QgsGeoreferencerMainWindow::openLayer( QgsMapLayerType layerType, const QSt
else
{
mFileName = fileName;
uri = mFileName;
switch ( layerType )
{
case QgsMapLayerType::RasterLayer:
provider = QStringLiteral( "gdal" );
break;
case QgsMapLayerType::VectorLayer:
provider = QStringLiteral( "ogr" );
break;
case QgsMapLayerType::PluginLayer:
case QgsMapLayerType::MeshLayer:
case QgsMapLayerType::VectorTileLayer:
case QgsMapLayerType::AnnotationLayer:
case QgsMapLayerType::PointCloudLayer:
case QgsMapLayerType::GroupLayer:
break;
}
}
mModifiedFileName.clear();
mCreateWorldFileOnly = false;
Expand Down

0 comments on commit 056ee1f

Please sign in to comment.