Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix misleading messages when trying to delete ogr sublayer
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Jul 22, 2021
1 parent cb36726 commit 0a2f10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/providers/ogr/qgsogritemguiprovider.cpp
Expand Up @@ -69,7 +69,7 @@ void QgsOgrItemGuiProvider::onDeleteLayer( QgsDataItemGuiContext context )
{
QAction *s = qobject_cast<QAction *>( sender() );
QVariantMap data = s->data().toMap();
bool isSubLayer = data[QStringLiteral( "isSublayer" )].toBool();
bool isSubLayer = data[QStringLiteral( "isSubLayer" )].toBool();
const QString uri = data[QStringLiteral( "uri" )].toString();
const QString name = data[QStringLiteral( "name" )].toString();
QPointer< QgsDataItem > parent = data[QStringLiteral( "parent" )].value<QPointer< QgsDataItem >>();
Expand Down

0 comments on commit 0a2f10c

Please sign in to comment.