Messagebox

This commit is contained in:
adityapk00
2018-11-02 20:07:04 -07:00
parent 79a7c41267
commit 5958b64d02

View File

@@ -285,12 +285,6 @@ void Connection::doRPCIgnoreError(const json& payload, const std::function<void(
void Connection::showTxError(const QString& error) {
if (error.isNull()) return;
QMessageBox msg(main);
msg.setIcon(QMessageBox::Icon::Critical);
msg.setWindowTitle("Transaction Error");
msg.setText("There was an error sending the transaction. The error was: \n\n"
+ error);
msg.exec();
QMessageBox::critical(main, "Transaction Error", "There was an error sending the transaction. The error was: \n\n"
+ error, QMessageBox::StandardButton::Ok);
}