mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix missing delete action for gpkg layers in browser
This commit is contained in:
parent
eda3d6e475
commit
8cb206e0e5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user