Skip to content

Commit

Permalink
Merge pull request #4787 from nyalldawson/expand_favourites
Browse files Browse the repository at this point in the history
Always expand out browser favorites node on startup
  • Loading branch information
nyalldawson committed Jul 4, 2017
2 parents b5360f8 + 502c18a commit 0a8f755
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/gui/qgsbrowsertreeview.cpp
Expand Up @@ -107,12 +107,10 @@ void QgsBrowserTreeView::restoreState()
expandTree( expandIndex );
}
}
else
{
// expand root favorites item
QModelIndex index = QgsBrowserModel::findPath( model(), QStringLiteral( "favorites:" ) );
expand( index );
}

// expand root favorites item
QModelIndex index = QgsBrowserModel::findPath( model(), QStringLiteral( "favorites:" ) );
expand( index );
}

void QgsBrowserTreeView::expandTree( const QModelIndex &index )
Expand Down

0 comments on commit 0a8f755

Please sign in to comment.