Skip to content
Permalink
Browse files

Always expand out browser favorites node on startup

It's the user-set favorites, so they should be accessible
as quickly as possible!
  • Loading branch information
nyalldawson committed Jun 28, 2017
1 parent 9f5e33a commit 502c18a3383c26ebc997dcacf9862db3156d60f6
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 502c18a

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