Skip to content

Commit fdc93dc

Browse files

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ bool QgsVectorLayer::setDataProvider( QString const & provider )
21912191
reg.indexIn( name() );
21922192
QStringList stuff = reg.capturedTexts();
21932193
QString lName = stuff[1];
2194-
if ( lName.length() == 3 )
2194+
if ( stuff.size() == 3 )
21952195
{
21962196
const QMap<QString, QgsMapLayer*> &layers = QgsMapLayerRegistry::instance()->mapLayers();
21972197

0 commit comments

Comments
 (0)
Please sign in to comment.