feat: Change confirm dialog titile.
This commit is contained in:
@@ -222,7 +222,7 @@ void SelectFormWidget::delPatient() {
|
|||||||
QString pUid = mLocalPatientModel->index(mLocalPatTable->currentIndex().row(), PatientUID).data().toString();
|
QString pUid = mLocalPatientModel->index(mLocalPatTable->currentIndex().row(), PatientUID).data().toString();
|
||||||
// patient has been selected as the scan patient!
|
// patient has been selected as the scan patient!
|
||||||
if (mSelectedPatientUID == pUid){
|
if (mSelectedPatientUID == pUid){
|
||||||
DialogManager::Default()->requestAlertMessage(tr("Can't delete selected Patient !"),DialogButtonMode::OkOnly,tr("Alert"));
|
DialogManager::Default()->requestAlertMessage(tr("Can't delete selected Patient !"),DialogButtonMode::OkOnly,tr("Warning"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// not the selected one, confirm!
|
// not the selected one, confirm!
|
||||||
@@ -243,7 +243,7 @@ void SelectFormWidget::delPatient() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//TODO:error handle
|
//TODO:error handle
|
||||||
DialogManager::Default()->requestAlertMessage(tr("Can't delete selected Patient , db submit error!"),DialogButtonMode::OkOnly,tr("Alert"));
|
DialogManager::Default()->requestAlertMessage(tr("Can't delete selected Patient , db submit error!"),DialogButtonMode::OkOnly,tr("Warning"));
|
||||||
}
|
}
|
||||||
prepareButtons(false);
|
prepareButtons(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user