This commit is contained in:
Wladimir J. van der Laan
2011-06-05 17:36:52 +02:00
parent 00b8acdf49
commit b7726d924e
4 changed files with 40 additions and 9 deletions

View File

@@ -380,3 +380,15 @@ void BitcoinGUI::closeEvent(QCloseEvent *event)
}
QMainWindow::closeEvent(event);
}
void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
{
QString strMessage =
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
"which goes to the nodes that process your transaction and helps to support the network. "
"Do you want to pay the fee?").arg(QString::fromStdString(FormatMoney(nFeeRequired)));
QMessageBox::StandardButton retval = QMessageBox::question(
this, tr("Sending..."), strMessage,
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
*payFee = (retval == QMessageBox::Yes);
}