Fix DatePickerBox setSelectedValue, and mBtnEdit,mBtnDelete logic in SelectFormWidget
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user