Skip to content
Permalink
Browse files
When dragging a vector layer with unknown geometry type from browser,
ensure the sublayers dialog is shown if the layer has unknown
geometry type

Fixes dragging geometry collection files like .tab files only adds
layer with one geometry type
  • Loading branch information
nyalldawson committed Jul 22, 2021
1 parent d23c46b commit 0a63349d3ea28bb4bcc3b9c1567c8f8093edbf95
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -13153,7 +13153,7 @@ T *QgisApp::addLayerPrivate( QgsMapLayerType type, const QString &uri, const QSt
// since the layer is bad, stomp on it
return nullptr;
}
else if ( sublayers.size() > 1 )
else if ( sublayers.size() > 1 || QgsProviderUtils::sublayerDetailsAreIncomplete( sublayers, true ) )
{
// ask user for sublayers (unless user settings dictate otherwise!)
switch ( shouldAskUserForSublayers( sublayers ) )

0 comments on commit 0a63349

Please sign in to comment.