fix: Alert dialog render bug

This commit is contained in:
chenhuijun
2024-07-19 16:09:19 +08:00
parent d9b903e1e3
commit 3cd25d8fbc
6 changed files with 59 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ AccountTableForm::AccountTableForm(QWidget* aParent)
return;
}
if ( DialogManager::Default()->requestAlertMessage(QString(tr("Delete account with ID:\"%1\"!")).arg(id), DialogButtonMode::OkAndCancel) != QDialog::Accepted) return;
if ( DialogManager::Default()->requestAlertMessage(QString(tr("Delete account with ID:\"%1\"!")), id, DialogButtonMode::OkAndCancel) != QDialog::Accepted) return;
model->removeRow(mCurrentRow);
model->select();
mCurrentRow = model->rowCount() > mCurrentRow + 1 ? mCurrentRow : mCurrentRow - 1;