Skip to content

Commit

Permalink
Fix recent project menu showing projects from custom storages as unav…
Browse files Browse the repository at this point in the history
…ailable. Fixes #32193
  • Loading branch information
borysiasty authored and nyalldawson committed Oct 27, 2019
1 parent 47eb526 commit 651e380
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/app/qgisapp.cpp
Expand Up @@ -1025,12 +1025,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
connect( projectsTemplateWatcher, &QFileSystemWatcher::directoryChanged, this, [this] { updateProjectFromTemplates(); } );
}

// Update welcome page list
startProfile( QStringLiteral( "Update recent project paths" ) );
updateRecentProjectPaths();
mWelcomePage->setRecentProjects( mRecentProjects );
endProfile();

// initialize the plugin manager
startProfile( QStringLiteral( "Plugin manager" ) );
mPluginManager = new QgsPluginManager( this, restorePlugins );
Expand Down Expand Up @@ -1246,6 +1240,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mSplash->showMessage( tr( "Restoring loaded plugins" ), Qt::AlignHCenter | Qt::AlignBottom );
qApp->processEvents();
QgsPluginRegistry::instance()->setQgisInterface( mQgisInterface );

if ( restorePlugins )
{
// Restoring of plugins can be disabled with --noplugins command line option
Expand Down Expand Up @@ -1281,6 +1276,12 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mActionShowPythonDialog = nullptr;
}

// Update recent project list (as possible custom project storages are now registered by plugins)
startProfile( QStringLiteral( "Update recent project paths" ) );
updateRecentProjectPaths();
mWelcomePage->setRecentProjects( mRecentProjects );
endProfile();

// Set icon size of toolbars
if ( settings.contains( QStringLiteral( "/qgis/iconSize" ) ) )
{
Expand Down

0 comments on commit 651e380

Please sign in to comment.