Skip to content
Permalink
Browse files

Merge pull request #8813 from signedav/vacuum-past-simple

Message after delete in proper english
  • Loading branch information
m-kuhn committed Jan 9, 2019
2 parents f1be811 + 2213be5 commit b847b492581f10e370fcd8cf48ad625b150c4279
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -529,15 +529,15 @@ bool QgsGeoPackageAbstractLayerItem::deleteLayer()
QgsGeoPackageConnectionItem *connectionParentItem = qobject_cast<QgsGeoPackageConnectionItem *>( mParent );
if ( connectionParentItem )
{
if ( QMessageBox::question( nullptr, QObject::tr( "Delete Layer" ), QObject::tr( "The layer <b>%1</b> has been deleted successfully."
if ( QMessageBox::question( nullptr, QObject::tr( "Delete Layer" ), QObject::tr( "The layer <b>%1</b> was successfully deleted."
" Compact database (VACUUM) <b>%2</b> now?" ).arg( mName, connectionParentItem->name() ), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ) == QMessageBox::Yes )
{
connectionParentItem->vacuumGeoPackageDbAction();
}
}
else
{
QMessageBox::information( nullptr, tr( "Delete Layer" ), tr( "The layer <b>%1</b> has been deleted successfully." ).arg( mName ) );
QMessageBox::information( nullptr, tr( "Delete Layer" ), tr( "The layer <b>%1</b> was successfully deleted." ).arg( mName ) );
}
if ( mParent )
mParent->refreshConnections();

0 comments on commit b847b49

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