Do not allow moving first sector if moving partition is disabled.
This commit is contained in:
parent
8b7982df08
commit
262bda5b3b
|
@ -130,6 +130,12 @@ void SizeDialogBase::setupConstraints()
|
|||
detailsWidget().spinFirstSector().setRange(minimumFirstSector(), maximumLastSector());
|
||||
detailsWidget().spinLastSector().setRange(minimumFirstSector(), maximumLastSector());
|
||||
|
||||
// Do not allow moving first sector if moving partition is disabled
|
||||
dialogWidget().spinFreeBefore().setEnabled(canMove());
|
||||
dialogWidget().spinFreeAfter().setEnabled(canMove());
|
||||
detailsWidget().spinFirstSector().setEnabled(canMove());
|
||||
detailsWidget().spinLastSector().setEnabled(canMove());
|
||||
|
||||
onAlignToggled(align());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue