Skip to content

Commit b034c2c

Browse files
committedOct 27, 2017
[welcome page] preserve pinned status when saving project
1 parent 90857b2 commit b034c2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3859,6 +3859,10 @@ void QgisApp::saveRecentProjectPath( const QString &projectPath, bool savePrevie
38593859

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

3862+
int idx = mRecentProjects.indexOf( projectData );
3863+
if ( idx != -1 )
3864+
projectData.pin = mRecentProjects.at( idx ).pin;
3865+
38623866
if ( savePreviewImage )
38633867
{
38643868
// Generate a unique file name
@@ -3882,7 +3886,6 @@ void QgisApp::saveRecentProjectPath( const QString &projectPath, bool savePrevie
38823886
}
38833887
else
38843888
{
3885-
int idx = mRecentProjects.indexOf( projectData );
38863889
if ( idx != -1 )
38873890
projectData.previewImagePath = mRecentProjects.at( idx ).previewImagePath;
38883891
}

0 commit comments

Comments
 (0)
Please sign in to comment.