Skip to content

Commit e4738d4

Browse files
committed
Fix context menu path display on windows
1 parent ff90c13 commit e4738d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ogr/qgsogrdataitems.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ QList<QAction *> QgsOgrLayerItem::actions( QWidget *parent )
311311
{
312312
QList<QAction *> lst;
313313
// Messages are different for files and tables
314-
QString message = mIsSubLayer ? QObject::tr( "Delete Layer '%1'…" ).arg( mName ) : QObject::tr( "Delete File '%1'…" ).arg( mUri );
314+
QString message = mIsSubLayer ? QObject::tr( "Delete Layer '%1'…" ).arg( mName ) : QObject::tr( "Delete File '%1'…" ).arg( QDir::toNativeSeparators( mUri ) );
315315
QAction *actionDeleteLayer = new QAction( message, parent );
316316
connect( actionDeleteLayer, &QAction::triggered, this, &QgsOgrLayerItem::deleteLayer );
317317
lst.append( actionDeleteLayer );

0 commit comments

Comments
 (0)