Skip to content

Commit 8981564

Browse files
committedJan 31, 2016
Fix dropping geometryless tables to spatialite browser items
1 parent 4825856 commit 8981564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/spatialite/qgsspatialitedataitems.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ bool QgsSLConnectionItem::handleDrop( const QMimeData * data, Qt::DropAction )
221221

222222
if ( srcLayer->isValid() )
223223
{
224-
destUri.setDataSource( QString(), u.name, "geom" );
224+
destUri.setDataSource( QString(), u.name, srcLayer->geometryType() != QGis::NoGeometry ? "geom" : QString() );
225225
QgsDebugMsg( "URI " + destUri.uri() );
226226
QgsVectorLayerImport::ImportError err;
227227
QString importError;

0 commit comments

Comments
 (0)
Please sign in to comment.