Skip to content

Commit d1d95b1

Browse files
committedOct 31, 2017
[welcome page] reverse chronological order for pinned projects
1 parent 3ae9ac5 commit d1d95b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,7 @@ void QgisApp::readRecentProjects()
16571657
}
16581658
std::sort( projectKeys.begin(), projectKeys.end() );
16591659

1660+
int pinPos = 0;
16601661
Q_FOREACH ( int key, projectKeys )
16611662
{
16621663
QgsWelcomePageItemsModel::RecentProjectData data;
@@ -1669,7 +1670,8 @@ void QgisApp::readRecentProjects()
16691670
settings.endGroup();
16701671
if ( data.pin )
16711672
{
1672-
mRecentProjects.prepend( data );
1673+
mRecentProjects.insert( pinPos, data );
1674+
pinPos++;
16731675
}
16741676
else
16751677
{

0 commit comments

Comments
 (0)
Please sign in to comment.