Fix missing delete action for gpkg layers in browser

This commit is contained in:
Nyall Dawson 2017-12-05 20:12:26 +10:00
parent eda3d6e475
commit 8cb206e0e5
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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