Skip to content

Commit

Permalink
Browser GPKG: fix drag and drop issue
Browse files Browse the repository at this point in the history
Fix a few more unreported issues with GPKG browser operations.

(cherry picked from commit 871cc68)
  • Loading branch information
elpaso authored and nyalldawson committed Jun 19, 2020
1 parent 623c263 commit a5062ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/providers/ogr/qgsgeopackageitemguiprovider.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -464,7 +464,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
Expand Down

0 comments on commit a5062ab

Please sign in to comment.