Fix DatePickerBox setSelectedValue, and mBtnEdit,mBtnDelete logic in SelectFormWidget

This commit is contained in:
chenhuijun
2024-05-06 10:14:44 +08:00
parent 7ef3b312e8
commit e55a13ccfd
2 changed files with 3 additions and 2 deletions

View File

@@ -89,8 +89,8 @@ void SelectFormWidget::prepareButtons(bool disableALL) {
bool stateFlag = (mPatTable->currentIndex().row() >= 0);
mBtnAdd->setEnabled(!anonymousMode && !disableALL);
// if (mBtnAdd)mBtnEdit->setEnabled(!anonymousMode && stateFlag && !disableALL);
// if (mBtnAdd)mBtnDelete->setEnabled(!anonymousMode&& stateFlag && !disableALL);
if (mBtnAdd)mBtnEdit->setEnabled(!anonymousMode && stateFlag && !disableALL);
if (mBtnAdd)mBtnDelete->setEnabled(!anonymousMode&& stateFlag && !disableALL);
mBtnSelect->setEnabled(stateFlag && !disableALL);
}