Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[welcome page] reverse chronological order for pinned projects
  • Loading branch information
nirvn committed Oct 31, 2017
1 parent 3ae9ac5 commit d1d95b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -1657,6 +1657,7 @@ void QgisApp::readRecentProjects()
}
std::sort( projectKeys.begin(), projectKeys.end() );

int pinPos = 0;
Q_FOREACH ( int key, projectKeys )
{
QgsWelcomePageItemsModel::RecentProjectData data;
Expand All @@ -1669,7 +1670,8 @@ void QgisApp::readRecentProjects()
settings.endGroup();
if ( data.pin )
{
mRecentProjects.prepend( data );
mRecentProjects.insert( pinPos, data );
pinPos++;
}
else
{
Expand Down

0 comments on commit d1d95b1

Please sign in to comment.