aboutsummaryrefslogtreecommitdiff
path: root/gui/src/bitcoingui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/bitcoingui.cpp')
-rw-r--r--gui/src/bitcoingui.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/src/bitcoingui.cpp b/gui/src/bitcoingui.cpp
index b687204629..70da0b2393 100644
--- a/gui/src/bitcoingui.cpp
+++ b/gui/src/bitcoingui.cpp
@@ -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);
+}