Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
missing breaks
  • Loading branch information
signedav committed Jul 10, 2018
1 parent 7d3027a commit e558044
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsofflineediting.cpp
Expand Up @@ -424,6 +424,7 @@ bool QgsOfflineEditing::createOfflineDb( const QString &offlineDbPath, Container
showWarning( tr( "Creation of database failed (OGR error: %1)" ).arg( QString::fromUtf8( CPLGetLastErrorMsg() ) ) );
return false;
}
break;
}
case SpatiaLite:
{
Expand Down Expand Up @@ -624,6 +625,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit
tableName, layer->isSpatial() ? "(Geometry)" : "" );
newLayer = new QgsVectorLayer( connectionString,
layer->name() + " (offline)", QStringLiteral( "spatialite" ) );
break;
}
case GPKG:
{
Expand All @@ -642,6 +644,7 @@ QgsVectorLayer *QgsOfflineEditing::copyVectorLayer( QgsVectorLayer *layer, sqlit

QString uri = QStringLiteral( "%1|layername=%2" ).arg( offlineDbPath, tableName );
newLayer = new QgsVectorLayer( uri, layer->name() + " (offline)", QStringLiteral( "ogr" ) );
break;
}
}

Expand Down

0 comments on commit e558044

Please sign in to comment.