[calamares] Fix test-loader runtime
- Some view steps expect the module manager to be there, avoid startup warnings by creating one.
This commit is contained in:
parent
e8f342c0a5
commit
f2fb49ce26
@ -33,6 +33,8 @@
|
|||||||
#include "Settings.h"
|
#include "Settings.h"
|
||||||
#include "ViewManager.h"
|
#include "ViewManager.h"
|
||||||
|
|
||||||
|
#include "modulesystem/ModuleManager.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QCommandLineOption>
|
#include <QCommandLineOption>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
@ -229,6 +231,7 @@ main( int argc, char* argv[] )
|
|||||||
aw = new QApplication( argc, argv );
|
aw = new QApplication( argc, argv );
|
||||||
QMainWindow* mw = module.m_ui ? new QMainWindow() : nullptr;
|
QMainWindow* mw = module.m_ui ? new QMainWindow() : nullptr;
|
||||||
(void)new Calamares::Branding( module.m_branding );
|
(void)new Calamares::Branding( module.m_branding );
|
||||||
|
(void)new Calamares::ModuleManager( QStringList(), nullptr );
|
||||||
(void)Calamares::ViewManager::instance( mw );
|
(void)Calamares::ViewManager::instance( mw );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user