Skip to content
Permalink
Browse files

missing breaks

  • Loading branch information
signedav committed Jul 10, 2018
1 parent 7d3027a commit e558044f99a25d73f5c9f9b7874e0cf2e026bd41
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsofflineediting.cpp
@@ -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:
{
@@ -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:
{
@@ -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;
}
}

0 comments on commit e558044

Please sign in to comment.
You can’t perform that action at this time.