Skip to content
Permalink
Browse files

[browser] Don't show full path to file for "delete" action in menu

This is often very long and makes the menu huge
  • Loading branch information
nyalldawson committed Oct 11, 2018
1 parent 375afe5 commit 2c16b14f64ecdff6206442d4e3c48e3c213a897e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrdataitems.cpp
@@ -311,7 +311,7 @@ QList<QAction *> QgsOgrLayerItem::actions( QWidget *parent )
{
QList<QAction *> lst;
// Messages are different for files and tables
QString message = mIsSubLayer ? QObject::tr( "Delete Layer '%1'" ).arg( mName ) : QObject::tr( "Delete File '%1'" ).arg( QDir::toNativeSeparators( mUri ) );
QString message = mIsSubLayer ? QObject::tr( "Delete Layer “%1”" ).arg( mName ) : QObject::tr( "Delete File “%1”" ).arg( mName );
QAction *actionDeleteLayer = new QAction( message, parent );
connect( actionDeleteLayer, &QAction::triggered, this, &QgsOgrLayerItem::deleteLayer );
lst.append( actionDeleteLayer );

0 comments on commit 2c16b14

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