browser restore favourites fix

This commit is contained in:
Radim Blazek 2014-11-20 21:32:34 +01:00
parent 907fb73d10
commit afd32fdc68

View File

@ -792,7 +792,9 @@ QVector<QgsDataItem*> QgsFavouritesItem::createChildren()
foreach ( QString favDir, favDirs )
{
QgsDataItem *item = new QgsDirectoryItem( this, favDir, favDir, mPath + favDir );
QString pathName = favDir;
pathName.replace( QRegExp( "[\\\\/]" ), "|" );
QgsDataItem *item = new QgsDirectoryItem( this, favDir, favDir, mPath + "/" + pathName );
if ( item )
{
children.append( item );