Skip to content
Permalink
Browse files

Use native OS directory separators in browser dock

  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 6ce3c61 commit 97d5d58398d37ada8acccaec7bb87d7ad28bbfcf
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/core/qgsdataitem.cpp
  2. +1 −1 src/gui/qgsbrowserdockwidget_p.cpp
@@ -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 );
}

0 comments on commit 97d5d58

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