Skip to content
Permalink
Browse files

Fix missing delete action for gpkg layers in browser

  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent eda3d6e commit 8cb206e0e50844fd547e3fbe5c349e17cfe71d30
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/providers/ogr/qgsgeopackagedataitems.cpp
  2. +1 −1 src/providers/ogr/qgsgeopackagedataitems.h
@@ -526,7 +526,7 @@ void QgsGeoPackageCollectionItem::addConnection()
#endif

#ifdef HAVE_GUI
QList<QAction *> QgsGeoPackageAbstractLayerItem::actions()
QList<QAction *> QgsGeoPackageAbstractLayerItem::actions( QWidget * )
{
QList<QAction *> lst;
QAction *actionDeleteLayer = new QAction( tr( "Delete Layer '%1'..." ).arg( mName ), this );
@@ -37,7 +37,7 @@ class QgsGeoPackageAbstractLayerItem : public QgsLayerItem
*/
virtual bool executeDeleteLayer( QString &errCause );
#ifdef HAVE_GUI
QList<QAction *> actions();
QList<QAction *> actions( QWidget *parent ) override;
public slots:
virtual void deleteLayer();
#endif

0 comments on commit 8cb206e

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