Skip to content

Commit

Permalink
Use native OS directory separators in browser dock
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 19, 2017
1 parent 6ce3c61 commit 97d5d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsdataitem.cpp
Expand Up @@ -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 )
{
Expand All @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsbrowserdockwidget_p.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 97d5d58

Please sign in to comment.