https://github.com/bitcoin/bitcoin/blob/5180a86c96bc05d2a731f70f36aae28ab5a3fad4/src/qt/sendcoinsdialog.cpp#L339

I think this is %1, not %2
confirmationDialog.exec();
    QMessageBox::StandardButton retval = (QMessageBox::StandardButton)confirmationDialog.result();
    if(retval != QMessageBox::Yes)
    {
        fNewRecipientAllowed = true;
        return;
    }
    
    WalletModel::SendCoinsReturn sendStatus = model->sendCoins(currentTransaction);
    
    processSendCoinsReturn(sendStatus);
    if (sendStatus.status == WalletModel::OK)
    {
        accept();
        CoinControlDialog::coinControl->UnSelectAll();
        coinControlUpdateLabels();
    }
    fNewRecipientAllowed = true;
}
void SendCoinsDialog::clear()
{
    
    while(ui->entries->count())
    {
        ui->entries->takeAt(0)->widget()->deleteLater();
    }
    addEntry();
    updateTabsAndLabels();
}
void SendCoinsDialog::reject()