We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 616b62c commit bd3ced7Copy full SHA for bd3ced7
src/core/qgsvectorlayer.cpp
@@ -2191,7 +2191,7 @@ bool QgsVectorLayer::setDataProvider( QString const & provider )
2191
reg.indexIn( name() );
2192
QStringList stuff = reg.capturedTexts();
2193
QString lName = stuff[1];
2194
- if ( lName.length() == 3 )
+ if ( stuff.size() == 3 )
2195
{
2196
const QMap<QString, QgsMapLayer*> &layers = QgsMapLayerRegistry::instance()->mapLayers();
2197
0 commit comments