Skip to content
Permalink
Browse files

Fix context menu path display on windows

  • Loading branch information
nyalldawson committed Oct 10, 2018
1 parent ff90c13 commit e4738d4eed0ae1ec2ada3d493d0ce4b604fcb0d3
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( mUri );
QString message = mIsSubLayer ? QObject::tr( "Delete Layer '%1'…" ).arg( mName ) : QObject::tr( "Delete File '%1'…" ).arg( QDir::toNativeSeparators( mUri ) );
QAction *actionDeleteLayer = new QAction( message, parent );
connect( actionDeleteLayer, &QAction::triggered, this, &QgsOgrLayerItem::deleteLayer );
lst.append( actionDeleteLayer );

0 comments on commit e4738d4

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