Skip to content
Permalink
Browse files

[welcome page] preserve pinned status when saving project

  • Loading branch information
nirvn committed Oct 27, 2017
1 parent 90857b2 commit b034c2c63b3d96b50691ca4c749d34a83c342ccb
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/qgisapp.cpp
@@ -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
@@ -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;
}

0 comments on commit b034c2c

Please sign in to comment.
You can’t perform that action at this time.