Skip to content
Permalink
Browse files

Merge pull request #36972 from elpaso/bugfix-more-gpkg-browser-issues

Browser GPKG: fix drag and drop issue
  • Loading branch information
elpaso committed Jun 5, 2020
2 parents 42ea7bc + 871cc68 commit 4fe0651f515c505fc36bb0c78a5b33c64a934e70
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/providers/ogr/qgsgeopackageitemguiprovider.cpp
@@ -94,7 +94,7 @@ void QgsGeoPackageItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu
// Add table to existing DB
QAction *actionAddTable = new QAction( tr( "Create a New Layer or Table…" ), collectionItem->parent() );
QPointer<QgsGeoPackageCollectionItem>collectionItemPtr { collectionItem };
const QString itemPath = collectionItem->path();
const QString itemPath = collectionItem->path().remove( QStringLiteral( "gpkg:/" ) );
connect( actionAddTable, &QAction::triggered, actionAddTable, [ collectionItemPtr, itemPath ]
{
QgsNewGeoPackageLayerDialog dialog( nullptr );
@@ -479,7 +479,7 @@ bool QgsGeoPackageItemGuiProvider::handleDropGeopackage( QgsGeoPackageCollection

if ( srcLayer->isValid() )
{
uri = item->path();
uri = item->path().remove( QStringLiteral( "gpkg:/" ) );
QgsDebugMsgLevel( "URI " + uri, 3 );

// check if the destination layer already exists

0 comments on commit 4fe0651

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