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