feat: Change confirm dialog titile.

This commit is contained in:
sunwen
2025-07-07 14:29:42 +08:00
parent 31e71ad18c
commit 8756813d6a

View File

@@ -222,7 +222,7 @@ void SelectFormWidget::delPatient() {
QString pUid = mLocalPatientModel->index(mLocalPatTable->currentIndex().row(), PatientUID).data().toString();
// patient has been selected as the scan patient!
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;
}
// not the selected one, confirm!
@@ -243,7 +243,7 @@ void SelectFormWidget::delPatient() {
}
} else {
//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);
}