Skip to content

Commit

Permalink
Fix dropping geometryless tables to postgres browser items
Browse files Browse the repository at this point in the history
(cherry-picked from 4a3d3db)
  • Loading branch information
nyalldawson committed Feb 23, 2016
1 parent 8d60664 commit dd89226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresdataitems.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit dd89226

Please sign in to comment.