Do not allow moving first sector if moving partition is disabled.

This commit is contained in:
Andrius Štikonas 2016-05-18 12:08:20 +01:00
parent 8b7982df08
commit 262bda5b3b
1 changed files with 6 additions and 0 deletions

View File

@ -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());
}