Skip to content

Commit 502c18a

Browse files
committed
Always expand out browser favorites node on startup
It's the user-set favorites, so they should be accessible as quickly as possible!
1 parent 9f5e33a commit 502c18a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/gui/qgsbrowsertreeview.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ void QgsBrowserTreeView::restoreState()
107107
expandTree( expandIndex );
108108
}
109109
}
110-
else
111-
{
112-
// expand root favorites item
113-
QModelIndex index = QgsBrowserModel::findPath( model(), QStringLiteral( "favorites:" ) );
114-
expand( index );
115-
}
110+
111+
// expand root favorites item
112+
QModelIndex index = QgsBrowserModel::findPath( model(), QStringLiteral( "favorites:" ) );
113+
expand( index );
116114
}
117115

118116
void QgsBrowserTreeView::expandTree( const QModelIndex &index )

0 commit comments

Comments
 (0)