Skip to content
Permalink
Browse files

Use notify for consistency

  • Loading branch information
elpaso committed Jul 18, 2020
1 parent d466f13 commit 2b3c680b45d159de5151bd0790ba331c66f164ab
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/mssql/qgsmssqldataitemguiprovider.cpp
@@ -83,7 +83,7 @@ void QgsMssqlDataItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu
}
}

bool QgsMssqlDataItemGuiProvider::deleteLayer( QgsLayerItem *item, QgsDataItemGuiContext )
bool QgsMssqlDataItemGuiProvider::deleteLayer( QgsLayerItem *item, QgsDataItemGuiContext context )
{
if ( QgsMssqlLayerItem *layerItem = qobject_cast< QgsMssqlLayerItem * >( item ) )
{
@@ -105,11 +105,11 @@ bool QgsMssqlDataItemGuiProvider::deleteLayer( QgsLayerItem *item, QgsDataItemGu

if ( !res )
{
QMessageBox::warning( nullptr, tr( "Delete %1" ).arg( typeName ), errCause );
notify( tr( "Delete %1" ).arg( typeName ), errCause, context, Qgis::MessageLevel::Warning );
}
else
{
QMessageBox::information( nullptr, tr( "Delete %1" ).arg( typeName ), tr( "%1 deleted successfully." ).arg( typeName ) );
notify( tr( "Delete %1" ).arg( typeName ), tr( "%1 deleted successfully." ).arg( typeName ), context, Qgis::MessageLevel::Success );
if ( connItem )
connItem->refresh();
}

0 comments on commit 2b3c680

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