@@ -736,16 +736,19 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
736
736
{
737
737
mRecentProjects .removeAt ( row );
738
738
saveRecentProjects ();
739
+ updateRecentProjectPaths ();
739
740
} );
740
741
connect ( mWelcomePage , &QgsWelcomePage::projectPinned, this , [ this ]( int row )
741
742
{
742
743
mRecentProjects .at ( row ).pin = true ;
743
744
saveRecentProjects ();
745
+ updateRecentProjectPaths ();
744
746
} );
745
747
connect ( mWelcomePage , &QgsWelcomePage::projectUnpinned, this , [ this ]( int row )
746
748
{
747
749
mRecentProjects .at ( row ).pin = false ;
748
750
saveRecentProjects ();
751
+ updateRecentProjectPaths ();
749
752
} );
750
753
endProfile ();
751
754
@@ -831,7 +834,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
831
834
functionProfile ( &QgisApp::createMapTips, this , QStringLiteral ( " Create map tips" ) );
832
835
functionProfile ( &QgisApp::createDecorations, this , QStringLiteral ( " Create decorations" ) );
833
836
functionProfile ( &QgisApp::readSettings, this , QStringLiteral ( " Read settings" ) );
834
- functionProfile ( &QgisApp::updateRecentProjectPaths, this , QStringLiteral ( " Update recent project paths" ) );
835
837
functionProfile ( &QgisApp::updateProjectFromTemplates, this , QStringLiteral ( " Update project from templates" ) );
836
838
functionProfile ( &QgisApp::legendLayerSelectionChanged, this , QStringLiteral ( " Legend layer selection changed" ) );
837
839
functionProfile ( &QgisApp::init3D, this , QStringLiteral ( " Initialize 3D support" ) );
@@ -858,6 +860,12 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
858
860
connect ( projectsTemplateWatcher, &QFileSystemWatcher::directoryChanged, this , [this ] { updateProjectFromTemplates (); } );
859
861
}
860
862
863
+ // Update welcome page list
864
+ startProfile ( QStringLiteral ( " Update recent project paths" ) );
865
+ updateRecentProjectPaths ();
866
+ mWelcomePage ->setRecentProjects ( mRecentProjects );
867
+ endProfile ();
868
+
861
869
// initialize the plugin manager
862
870
startProfile ( QStringLiteral ( " Plugin manager" ) );
863
871
mPluginManager = new QgsPluginManager ( this , restorePlugins );
@@ -3819,9 +3827,6 @@ void QgisApp::updateRecentProjectPaths()
3819
3827
}
3820
3828
}
3821
3829
3822
- if ( mWelcomePage )
3823
- mWelcomePage ->setRecentProjects ( mRecentProjects );
3824
-
3825
3830
#if defined(Q_OS_WIN)
3826
3831
QWinJumpList jumplist;
3827
3832
jumplist.recent ()->clear ();
@@ -3912,6 +3917,10 @@ void QgisApp::saveRecentProjectPath( const QString &projectPath, bool savePrevie
3912
3917
// Update menu list of paths
3913
3918
updateRecentProjectPaths ();
3914
3919
3920
+ // Update welcome page list
3921
+ if ( mWelcomePage )
3922
+ mWelcomePage ->setRecentProjects ( mRecentProjects );
3923
+
3915
3924
} // QgisApp::saveRecentProjectPath
3916
3925
3917
3926
// Save recent projects list to settings
0 commit comments