Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
0 deletions.
-
+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; |
|
|
} |
|
|
} |
|
|
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.