Skip to content

Commit

Permalink
[browser] Don't show full path to file for "delete" action in menu
Browse files Browse the repository at this point in the history
This is often very long and makes the menu huge
  • Loading branch information
nyalldawson committed Oct 11, 2018
1 parent 375afe5 commit 2c16b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrdataitems.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 2c16b14

Please sign in to comment.