fix: Disable the save button when config not writable
This commit is contained in:
parent
486b5a491f
commit
34f6186941
1 changed files with 2 additions and 0 deletions
|
|
@ -252,6 +252,8 @@ void SettingsDialog::updateControls()
|
||||||
const bool serviceChecked = ui->groupService->isChecked();
|
const bool serviceChecked = ui->groupService->isChecked();
|
||||||
const bool logToFile = ui->cbLogToFile->isChecked();
|
const bool logToFile = ui->cbLogToFile->isChecked();
|
||||||
|
|
||||||
|
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(writable);
|
||||||
|
|
||||||
ui->sbPort->setEnabled(writable);
|
ui->sbPort->setEnabled(writable);
|
||||||
ui->lineInterface->setEnabled(writable);
|
ui->lineInterface->setEnabled(writable);
|
||||||
ui->comboLogLevel->setEnabled(writable);
|
ui->comboLogLevel->setEnabled(writable);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue