Skip to content
Permalink
Browse files

Merge pull request #4787 from nyalldawson/expand_favourites

Always expand out browser favorites node on startup
  • Loading branch information
nyalldawson committed Jul 4, 2017
2 parents b5360f8 + 502c18a commit 0a8f75576d53a1b773569b41de01e3d9441f1cbb
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/gui/qgsbrowsertreeview.cpp
@@ -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 )

0 comments on commit 0a8f755

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