Skip to content
Permalink
Browse files

Added 'datasource' and 'GeoPackage' to the delete confirm message

  • Loading branch information
elpaso committed Aug 16, 2017
1 parent 162339d commit cc1461909029526707f79d2689fb43eb9aefe32e
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/providers/ogr/qgsgeopackagedataitems.cpp
  2. +1 −1 src/providers/ogr/qgsogrdataitems.cpp
@@ -371,7 +371,7 @@ QList<QAction *> QgsGeoPackageVectorLayerItem::actions()
void QgsGeoPackageVectorLayerItem::deleteLayer()
{
if ( QMessageBox::question( nullptr, QObject::tr( "Delete Layer" ),
QObject::tr( "Are you sure you want to delete layer '%1'?" ).arg( mName ),
QObject::tr( "Are you sure you want to delete layer '%1' from GeoPackage?" ).arg( mName ),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) != QMessageBox::Yes )
return;

@@ -134,7 +134,7 @@ void QgsOgrLayerItem::deleteLayer()
QString confirmMessage;
if ( mIsSubLayer )
{
confirmMessage = QObject::tr( "Are you sure you want to delete layer '%1'?" ).arg( mName );
confirmMessage = QObject::tr( "Are you sure you want to delete layer '%1' from datasource?" ).arg( mName );
}
else
{

0 comments on commit cc14619

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