mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]
This commit is contained in:
parent
87207a2e08
commit
76d8170ce8
@ -106,6 +106,9 @@ void EditAddressDialog::accept()
|
|||||||
tr("New key generation failed."),
|
tr("New key generation failed."),
|
||||||
QMessageBox::Ok, QMessageBox::Ok);
|
QMessageBox::Ok, QMessageBox::Ok);
|
||||||
return;
|
return;
|
||||||
|
case AddressTableModel::OK:
|
||||||
|
// Failed with unknown reason. Just reject.
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -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."),
|
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);
|
QMessageBox::Ok, QMessageBox::Ok);
|
||||||
break;
|
break;
|
||||||
|
case WalletModel::Aborted: // User aborted, nothing to do
|
||||||
|
break;
|
||||||
case WalletModel::OK:
|
case WalletModel::OK:
|
||||||
accept();
|
accept();
|
||||||
break;
|
break;
|
||||||
|
@ -35,8 +35,7 @@ public:
|
|||||||
DuplicateAddress,
|
DuplicateAddress,
|
||||||
TransactionCreationFailed, // Error returned when wallet is still locked
|
TransactionCreationFailed, // Error returned when wallet is still locked
|
||||||
TransactionCommitFailed,
|
TransactionCommitFailed,
|
||||||
Aborted,
|
Aborted
|
||||||
MiscError
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum EncryptionStatus
|
enum EncryptionStatus
|
||||||
|
Loading…
Reference in New Issue
Block a user