From 28500de2f8b6ca2d925cd225d4d5ff1745127324 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 20 May 2020 10:54:48 +0200 Subject: [PATCH] [calamares] Register modules in test-loader - When a viewmodule is loaded, register it with the module manager (especially relevant for the slideshow module). --- src/calamares/testmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calamares/testmain.cpp b/src/calamares/testmain.cpp index 57da890cc..2b004ed7f 100644 --- a/src/calamares/testmain.cpp +++ b/src/calamares/testmain.cpp @@ -397,8 +397,9 @@ main( int argc, char* argv[] ) mw = module.m_ui ? new QMainWindow() : nullptr; (void)new Calamares::Branding( module.m_branding ); - (void)new Calamares::ModuleManager( QStringList(), nullptr ); + auto* modulemanager = new Calamares::ModuleManager( QStringList(), nullptr ); (void)Calamares::ViewManager::instance( mw ); + modulemanager->addModule( m ); } if ( !m->isLoaded() )