diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-04-15 12:42:52 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-04-15 13:40:14 +0200 |
| commit | 76d8170ce8b4714657f8defd791bd30fef1a8de4 (patch) | |
| tree | 472ba344e555831384860a691374d50f116fe2f5 /src | |
| parent | fix warnings: 'XX' defined as a struct here but previously declared as a clas... (diff) | |
| download | discoin-76d8170ce8b4714657f8defd791bd30fef1a8de4.tar.xz discoin-76d8170ce8b4714657f8defd791bd30fef1a8de4.zip | |
fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/editaddressdialog.cpp | 3 | ||||
| -rw-r--r-- | src/qt/sendcoinsdialog.cpp | 2 | ||||
| -rw-r--r-- | src/qt/walletmodel.h | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp index 8cc3c85d7..cecb8aecd 100644 --- a/src/qt/editaddressdialog.cpp +++ b/src/qt/editaddressdialog.cpp @@ -106,6 +106,9 @@ void EditAddressDialog::accept() tr("New key generation failed."), QMessageBox::Ok, QMessageBox::Ok); return; + case AddressTableModel::OK: + // Failed with unknown reason. Just reject. + break; } return; diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index 592ae6f45..b4029aa0d 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -154,6 +154,8 @@ void SendCoinsDialog::on_sendButton_clicked() 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; diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index c4468171a..6c47f61be 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -35,8 +35,7 @@ public: DuplicateAddress, TransactionCreationFailed, // Error returned when wallet is still locked TransactionCommitFailed, - Aborted, - MiscError + Aborted }; enum EncryptionStatus |