|
|
@ -80,7 +80,7 @@ ResizePartitionJob::exec()
|
|
|
|
m_partition->setLastSector( m_oldLastSector );
|
|
|
|
m_partition->setLastSector( m_oldLastSector );
|
|
|
|
ResizeOperation op(*m_device, *m_partition, m_newFirstSector, m_newLastSector);
|
|
|
|
ResizeOperation op(*m_device, *m_partition, m_newFirstSector, m_newLastSector);
|
|
|
|
op.setStatus(Operation::StatusRunning);
|
|
|
|
op.setStatus(Operation::StatusRunning);
|
|
|
|
connect(&op, &Operation::progress, [&](int percent) { emit progress(percent / 100.0); } );
|
|
|
|
connect(&op, &Operation::progress, this, &ResizePartitionJob::progress );
|
|
|
|
|
|
|
|
|
|
|
|
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
|
|
|
QString errorMessage = tr( "The installer failed to resize partition %1 on disk '%2'." )
|
|
|
|
.arg( m_partition->partitionPath() )
|
|
|
|
.arg( m_partition->partitionPath() )
|
|
|
|