Skip to content
Permalink
Browse files
Fix recent project menu showing projects from custom storages as unav…
…ailable. Fixes #32193
  • Loading branch information
borysiasty authored and nirvn committed Oct 27, 2019
1 parent 1981899 commit 7adc2f15990961c3c33261f69c7da69d453f491e
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/app/qgisapp.cpp
@@ -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 );
@@ -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
@@ -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" ) ) )
{

0 comments on commit 7adc2f1

Please sign in to comment.