[partition] Fix propagation of new partition table to global storage.

This commit is contained in:
Philip 2017-12-27 10:11:50 -05:00
parent 47a9a57b76
commit 63f126d98f
3 changed files with 1 additions and 9 deletions

View File

@ -32,9 +32,6 @@
#include <kpmcore/ops/newoperation.h> #include <kpmcore/ops/newoperation.h>
#include <kpmcore/util/report.h> #include <kpmcore/util/report.h>
// Qt
#include <QScopedPointer>
CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition ) CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition )
: PartitionJob( partition ) : PartitionJob( partition )
, m_device( device ) , m_device( device )

View File

@ -31,7 +31,6 @@
#include <util/report.h> #include <util/report.h>
// Qt // Qt
#include <QScopedPointer>
#include <QProcess> #include <QProcess>
CreatePartitionTableJob::CreatePartitionTableJob( Device* device, PartitionTable::TableType type ) CreatePartitionTableJob::CreatePartitionTableJob( Device* device, PartitionTable::TableType type )
@ -72,7 +71,7 @@ CreatePartitionTableJob::exec()
Report report( nullptr ); Report report( nullptr );
QString message = tr( "The installer failed to create a partition table on %1." ).arg( m_device->name() ); QString message = tr( "The installer failed to create a partition table on %1." ).arg( m_device->name() );
PartitionTable* table( createTable() ); PartitionTable* table = m_device->partitionTable();
cDebug() << "Creating new partition table of type" << table->typeName() cDebug() << "Creating new partition table of type" << table->typeName()
<< ", uncommitted yet:\n" << table; << ", uncommitted yet:\n" << table;

View File

@ -29,10 +29,6 @@
#include <ops/createfilesystemoperation.h> #include <ops/createfilesystemoperation.h>
#include <util/report.h> #include <util/report.h>
// Qt
#include <QScopedPointer>
#include <QThread>
FormatPartitionJob::FormatPartitionJob( Device* device, Partition* partition ) FormatPartitionJob::FormatPartitionJob( Device* device, Partition* partition )
: PartitionJob( partition ) : PartitionJob( partition )
, m_device( device ) , m_device( device )