Skip to content
Permalink
Browse files

Fix dropping geometryless tables to spatialite browser items

(cherry-picked from 8981564)
  • Loading branch information
nyalldawson committed Feb 23, 2016
1 parent 1187e72 commit 8d60664988294736b97d6604889ce7c95e66ebe7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/spatialite/qgsspatialitedataitems.cpp
@@ -211,7 +211,7 @@ bool QgsSLConnectionItem::handleDrop( const QMimeData * data, Qt::DropAction )

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

0 comments on commit 8d60664

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