Mercurial > hg > bitcoin
changeset 2908:db8922cf7829 draft
fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Sun, 15 Apr 2012 12:42:52 +0200 |
parents | 8503583abda4 |
children | e80fb6bb8d95 |
files | src/qt/editaddressdialog.cpp src/qt/sendcoinsdialog.cpp src/qt/walletmodel.h |
diffstat | 3 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/editaddressdialog.cpp +++ b/src/qt/editaddressdialog.cpp @@ -106,6 +106,9 @@ tr("New key generation failed."), QMessageBox::Ok, QMessageBox::Ok); return; + case AddressTableModel::OK: + // Failed with unknown reason. Just reject. + break; } return;
--- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -148,6 +148,8 @@ 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."), QMessageBox::Ok, QMessageBox::Ok); break; + case WalletModel::Aborted: // User aborted, nothing to do + break; case WalletModel::OK: accept(); break;