Updating ok button validation

This commit is contained in:
Caio Carvalho 2018-08-14 12:17:10 +02:00
parent c8cdebf5fb
commit 57a2072686
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ void CreateVolumeGroupDialog::updateOkButtonStatus()
if (dialogWidget().volumeType().currentText() == QStringLiteral("RAID")) {
bool ok = dialogWidget().listPV().checkedItems().count() >= 2 &&
dialogWidget().vgName().text().length() > 2 &&
dialogWidget().vgName().text().startsWith(QStringLiteral("md"));
okButton->setEnabled(ok);