mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
Style + translation.
This commit is contained in:
parent
2aeadf9682
commit
c158893b22
1 changed files with 10 additions and 6 deletions
|
@ -67,7 +67,8 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, Partit
|
||||||
m_partitionSizeController->setSpinBox( m_ui->sizeSpinBox );
|
m_partitionSizeController->setSpinBox( m_ui->sizeSpinBox );
|
||||||
|
|
||||||
m_ui->mountPointComboBox->setCurrentText( PartitionInfo::mountPoint( partition ) );
|
m_ui->mountPointComboBox->setCurrentText( PartitionInfo::mountPoint( partition ) );
|
||||||
connect( m_ui->mountPointComboBox, &QComboBox::currentTextChanged, this, &EditExistingPartitionDialog::checkMountPointSelection );
|
connect( m_ui->mountPointComboBox, &QComboBox::currentTextChanged,
|
||||||
|
this, &EditExistingPartitionDialog::checkMountPointSelection );
|
||||||
|
|
||||||
replacePartResizerWidget();
|
replacePartResizerWidget();
|
||||||
|
|
||||||
|
@ -300,11 +301,14 @@ EditExistingPartitionDialog::checkMountPointSelection()
|
||||||
{
|
{
|
||||||
const QString& selection = m_ui->mountPointComboBox->currentText();
|
const QString& selection = m_ui->mountPointComboBox->currentText();
|
||||||
|
|
||||||
if (m_usedMountPoints.contains(selection)) {
|
if ( m_usedMountPoints.contains( selection ) )
|
||||||
m_ui->labelMountPoint->setText("Mountpoint already in use. Please select another one.");
|
{
|
||||||
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
m_ui->labelMountPoint->setText( tr( "Mountpoint already in use. Please select another one." ) );
|
||||||
} else {
|
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( false );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_ui->labelMountPoint->setText( QString() );
|
m_ui->labelMountPoint->setText( QString() );
|
||||||
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
|
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue