Merge pull request #585

48a7596 remove processing splash when transfer fails (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-03-22 11:34:35 +02:00
commit 9e3b3d89b6
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -537,6 +537,7 @@ ApplicationWindow {
console.log("integer amount: ", amountxmr);
console.log("integer unlocked",currentWallet.unlockedBalance)
if (amountxmr <= 0) {
hideProcessingSplash()
informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("Amount is wrong: expected number from %1 to %2")
.arg(walletManager.displayAmount(0))
@ -548,6 +549,7 @@ ApplicationWindow {
informationPopup.open()
return;
} else if (amountxmr > currentWallet.unlockedBalance) {
hideProcessingSplash()
informationPopup.title = qsTr("Error") + translationManager.emptyString;
informationPopup.text = qsTr("insufficient funds. Unlocked balance: %1")
.arg(walletManager.displayAmount(currentWallet.unlockedBalance))