You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Qt] sendcoinsdialog: convert QMessageBox usage to message()
- add new processSendCoinsReturn() function, which parses the
status of WalletModel::SendCoinsReturn and generates a pair consisting
of a message and message flags
- result is we only need one emit message() call
- this change ensures that the GUI is shown for warnings/errors in
sendcoinsdialog, because of message() taking care of that for modal
messages
- changes 2 warning message into error messages and removed "Error:"
in front of the actual error message string
// process sendStatus and on error generate message shown to user
181
+
processSendCoinsReturn(sendStatus);
182
+
183
+
if (sendStatus.status == WalletModel::OK)
213
184
{
214
-
case WalletModel::TransactionCommitFailed:
215
-
QMessageBox::warning(this, strSendCoins,
216
-
tr("Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."));
217
-
break;
218
-
case WalletModel::OK:
219
185
accept();
220
-
break;
221
-
case WalletModel::Aborted: // User aborted, nothing to do
msgParams.first = tr("The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.");
387
+
msgParams.second = CClientUIInterface::MSG_ERROR;
388
+
break;
389
+
// OK and Aborted are included to prevent a compiler warning.
0 commit comments