Skip to content

Commit

Permalink
Fix dropping geometryless tables to spatialite browser items
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 31, 2016
1 parent 4825856 commit 8981564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialitedataitems.cpp
Expand Up @@ -221,7 +221,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;
Expand Down

0 comments on commit 8981564

Please sign in to comment.