mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Use native OS directory separators in browser dock
This commit is contained in:
parent
6ce3c6100d
commit
97d5d58398
@ -670,7 +670,7 @@ QgsDataCollectionItem::~QgsDataCollectionItem()
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
QgsDirectoryItem::QgsDirectoryItem( QgsDataItem *parent, const QString &name, const QString &path )
|
||||
: QgsDataCollectionItem( parent, name, path )
|
||||
: QgsDataCollectionItem( parent, QDir::toNativeSeparators( name ), path )
|
||||
, mDirPath( path )
|
||||
, mRefreshLater( false )
|
||||
{
|
||||
@ -679,7 +679,7 @@ QgsDirectoryItem::QgsDirectoryItem( QgsDataItem *parent, const QString &name, co
|
||||
}
|
||||
|
||||
QgsDirectoryItem::QgsDirectoryItem( QgsDataItem *parent, const QString &name, const QString &dirPath, const QString &path )
|
||||
: QgsDataCollectionItem( parent, name, path )
|
||||
: QgsDataCollectionItem( parent, QDir::toNativeSeparators( name ), path )
|
||||
, mDirPath( dirPath )
|
||||
, mRefreshLater( false )
|
||||
{
|
||||
|
@ -234,7 +234,7 @@ void QgsBrowserDirectoryProperties::setItem( QgsDataItem *item )
|
||||
if ( !item )
|
||||
return;
|
||||
|
||||
mPathLabel->setText( directoryItem->dirPath() );
|
||||
mPathLabel->setText( QDir::toNativeSeparators( directoryItem->dirPath() ) );
|
||||
mDirectoryWidget = new QgsDirectoryParamWidget( directoryItem->dirPath(), this );
|
||||
mLayout->addWidget( mDirectoryWidget );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user