Skip to content
Permalink
Browse files

Fix dropping geometryless tables to postgres browser items

(cherry-picked from 4a3d3db)
  • Loading branch information
nyalldawson committed Feb 23, 2016
1 parent 8d60664 commit dd89226fbc5408c0100c64f462022d429b9fad7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresdataitems.cpp
@@ -172,7 +172,7 @@ bool QgsPGConnectionItem::handleDrop( const QMimeData * data, Qt::DropAction )

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

0 comments on commit dd89226

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