Fix select from delete all bug.
This commit is contained in:
@@ -161,11 +161,15 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
||||
});
|
||||
|
||||
connect(btnAdd, &QToolButton::clicked, [=]() {
|
||||
edit_patient->show();
|
||||
btnShowEdit->hide();
|
||||
edit_patient->clearPatientInformation();
|
||||
edit_patient->setEditEnable(true);
|
||||
btnSelect->setEnabled(false);
|
||||
});
|
||||
connect(btnEdit, &QToolButton::clicked, [=]() {
|
||||
edit_patient->show();
|
||||
btnShowEdit->hide();
|
||||
table->clicked(table->currentIndex());
|
||||
edit_patient->setEditEnable(true);
|
||||
btnSelect->setEnabled(false);
|
||||
@@ -238,6 +242,8 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
||||
}
|
||||
else {
|
||||
currentRow = -1;
|
||||
edit_patient->editCancel();
|
||||
edit_patient->clearPatientInformation();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user