Skip to content

Commit

Permalink
Always expand out browser favorites node on startup
Browse files Browse the repository at this point in the history
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 502c18a
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 502c18a

Please sign in to comment.