Always expand out browser favorites node on startup

It's the user-set favorites, so they should be accessible
as quickly as possible!
This commit is contained in:
Nyall Dawson 2017-06-28 16:34:56 +10:00
parent 9f5e33af72
commit 502c18a338

View File

@ -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 )