Skip to content

Commit

Permalink
[welcome page] preserve pinned status when saving project
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Oct 27, 2017
1 parent 90857b2 commit b034c2c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3859,6 +3859,10 @@ void QgisApp::saveRecentProjectPath( const QString &projectPath, bool savePrevie

projectData.crs = QgsProject::instance()->crs().authid();

int idx = mRecentProjects.indexOf( projectData );
if ( idx != -1 )
projectData.pin = mRecentProjects.at( idx ).pin;

if ( savePreviewImage )
{
// Generate a unique file name
Expand All @@ -3882,7 +3886,6 @@ void QgisApp::saveRecentProjectPath( const QString &projectPath, bool savePrevie
}
else
{
int idx = mRecentProjects.indexOf( projectData );
if ( idx != -1 )
projectData.previewImagePath = mRecentProjects.at( idx ).previewImagePath;
}
Expand Down

0 comments on commit b034c2c

Please sign in to comment.