Skip to content

Commit 8d60664

Browse files
committed
Fix dropping geometryless tables to spatialite browser items
(cherry-picked from 8981564)
1 parent 1187e72 commit 8d60664

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
@@ -211,7 +211,7 @@ bool QgsSLConnectionItem::handleDrop( const QMimeData * data, Qt::DropAction )
211211

212212
if ( srcLayer->isValid() )
213213
{
214-
destUri.setDataSource( QString(), u.name, "geom" );
214+
destUri.setDataSource( QString(), u.name, srcLayer->geometryType() != QGis::NoGeometry ? "geom" : QString() );
215215
QgsDebugMsg( "URI " + destUri.uri() );
216216
QgsVectorLayerImport::ImportError err;
217217
QString importError;

0 commit comments

Comments
 (0)