Make sure all PM filesystem classes are initialized early enough
If FileSystemFactory::init() is not called early enough, we won't get access to some information such as the number of used sectors.
This commit is contained in:
parent
493e368bf0
commit
c3efa65668
@ -47,8 +47,6 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device, PartitionNode* par
|
|||||||
{
|
{
|
||||||
m_ui->setupUi( this );
|
m_ui->setupUi( this );
|
||||||
|
|
||||||
FileSystemFactory::init();
|
|
||||||
|
|
||||||
if ( device->partitionTable()->type() == PartitionTable::msdos )
|
if ( device->partitionTable()->type() == PartitionTable::msdos )
|
||||||
initMbrPartitionTypeUi();
|
initMbrPartitionTypeUi();
|
||||||
else
|
else
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include <core/partition.h>
|
#include <core/partition.h>
|
||||||
#include <backend/corebackend.h>
|
#include <backend/corebackend.h>
|
||||||
#include <backend/corebackendmanager.h>
|
#include <backend/corebackendmanager.h>
|
||||||
|
#include <fs/filesystemfactory.h>
|
||||||
|
|
||||||
// Qt
|
// Qt
|
||||||
#include <QStandardItemModel>
|
#include <QStandardItemModel>
|
||||||
@ -90,10 +91,9 @@ PartitionCoreModule::PartitionCoreModule( QObject* parent )
|
|||||||
, m_deviceModel( new DeviceModel( this ) )
|
, m_deviceModel( new DeviceModel( this ) )
|
||||||
, m_bootLoaderModel( new BootLoaderModel( this ) )
|
, m_bootLoaderModel( new BootLoaderModel( this ) )
|
||||||
{
|
{
|
||||||
// FIXME: Should be done at startup
|
|
||||||
if ( !CalaPM::init() )
|
if ( !CalaPM::init() )
|
||||||
qFatal( "Failed to init CalaPM" );
|
qFatal( "Failed to init CalaPM" );
|
||||||
|
FileSystemFactory::init();
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user