mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Check first selection of mountpoint too.
When opening the dialog.
This commit is contained in:
parent
f51b05e8aa
commit
8c1199df2d
2 changed files with 7 additions and 3 deletions
|
@ -110,6 +110,8 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device, PartitionNode* par
|
|||
updateMountPointUi();
|
||||
|
||||
setupFlagsList();
|
||||
// Checks the initial selection.
|
||||
checkMountPointSelection();
|
||||
}
|
||||
|
||||
CreatePartitionDialog::~CreatePartitionDialog()
|
||||
|
@ -257,10 +259,12 @@ CreatePartitionDialog::updateMountPointUi()
|
|||
}
|
||||
|
||||
void
|
||||
CreatePartitionDialog::checkMountPointSelection(const QString& selection)
|
||||
CreatePartitionDialog::checkMountPointSelection()
|
||||
{
|
||||
const QString& selection = m_ui->mountPointComboBox->currentText();
|
||||
|
||||
if (m_usedMountPoints.contains(selection)) {
|
||||
m_ui->labelMountPoint->setText("Mountpoint already used. Please select another one.");
|
||||
m_ui->labelMountPoint->setText("Mountpoint already in use. Please select another one.");
|
||||
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
} else {
|
||||
m_ui->labelMountPoint->setText( QString() );
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
private Q_SLOTS:
|
||||
void updateMountPointUi();
|
||||
void checkMountPointSelection(const QString &);
|
||||
void checkMountPointSelection();
|
||||
|
||||
private:
|
||||
void setupFlagsList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue