Skip to content
Permalink
Browse files

Browser favourites restore state fix

  • Loading branch information
blazek committed Feb 19, 2015
1 parent 09a5283 commit 764f9e7c0d0263f6fc0a9f5f4dd0060521d33f26
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gui/qgsbrowsertreeview.cpp
@@ -180,9 +180,13 @@ void QgsBrowserTreeView::rowsInserted( const QModelIndex & parentIndex, int star
{
QModelIndex childIndex = model()->index( i, 0, parentIndex );
QString childPath = model()->data( childIndex, QgsBrowserModel::PathRole ).toString();
QString escapedChildPath = childPath;
escapedChildPath.replace( "|", "\\|" );

if ( mExpandPaths.contains( childPath ) || mExpandPaths.indexOf( QRegExp( "^" + childPath + "/.*" ) ) != -1 )
QgsDebugMsgLevel( "childPath = " + childPath + " escapedChildPath = " + escapedChildPath, 2 );
if ( mExpandPaths.contains( childPath ) || mExpandPaths.indexOf( QRegExp( "^" + escapedChildPath + "/.*" ) ) != -1 )
{
QgsDebugMsgLevel( "-> expand", 2 );
expand( childIndex );
}
}

0 comments on commit 764f9e7

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