Fix unselect bug of Patient grid after delete.
This commit is contained in:
@@ -244,6 +244,7 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
{
|
{
|
||||||
table->selectRow(0);
|
table->selectRow(0);
|
||||||
model->selectRow(0);
|
model->selectRow(0);
|
||||||
|
currentRow = 0;
|
||||||
PatientInformation pat;
|
PatientInformation pat;
|
||||||
#define ADD_PATIENT_PROPERTY(val)\
|
#define ADD_PATIENT_PROPERTY(val)\
|
||||||
pat. val = model->data(model->index(0,PatientInformationEnum:: val)).toString();
|
pat. val = model->data(model->index(0,PatientInformationEnum:: val)).toString();
|
||||||
@@ -310,4 +311,5 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
|
|
||||||
SelectFormWidget::~SelectFormWidget()
|
SelectFormWidget::~SelectFormWidget()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user