mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
browser restore favourites fix
This commit is contained in:
parent
907fb73d10
commit
afd32fdc68
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user