From d5f32be5e3ce162b19bb2871b87ae3b178478167 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 17 Feb 2024 17:03:27 +0100 Subject: [PATCH] [partition] Repair enable/disable status of FS label The entry field was always enabled, but the label of the FS-label entry field depended on the format button. --- src/modules/partition/gui/EditExistingPartitionDialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/partition/gui/EditExistingPartitionDialog.cpp b/src/modules/partition/gui/EditExistingPartitionDialog.cpp index a76bee289..9c8d543e7 100644 --- a/src/modules/partition/gui/EditExistingPartitionDialog.cpp +++ b/src/modules/partition/gui/EditExistingPartitionDialog.cpp @@ -69,9 +69,10 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, this, &EditExistingPartitionDialog::checkMountPointSelection ); - // The filesystem label dialog is always enabled, because we may want to change + // The filesystem label field is always enabled, because we may want to change // the label on the current filesystem without formatting. m_ui->fileSystemLabelEdit->setText( m_partition->fileSystem().label() ); + m_ui->fileSystemLabel->setEnabled(true); replacePartResizerWidget(); @@ -81,7 +82,6 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, { replacePartResizerWidget(); - m_ui->fileSystemLabel->setEnabled( doFormat ); m_ui->fileSystemComboBox->setEnabled( doFormat ); if ( !doFormat ) @@ -133,7 +133,6 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, m_ui->keepRadioButton->setChecked( !partitionIsZFS ); m_ui->keepRadioButton->setEnabled( !partitionIsZFS ); - m_ui->fileSystemLabel->setEnabled( m_ui->formatRadioButton->isChecked() ); m_ui->fileSystemComboBox->setEnabled( m_ui->formatRadioButton->isChecked() ); setFlagList( *( m_ui->m_listFlags ), m_partition->availableFlags(), PartitionInfo::flags( m_partition ) );