aboutsummaryrefslogtreecommitdiff
path: root/gui/src/clientmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/clientmodel.cpp')
-rw-r--r--gui/src/clientmodel.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/src/clientmodel.cpp b/gui/src/clientmodel.cpp
index 8fd3599e9..97391e093 100644
--- a/gui/src/clientmodel.cpp
+++ b/gui/src/clientmodel.cpp
@@ -34,7 +34,9 @@ QString ClientModel::getAddress()
if (CWalletDB("r").ReadDefaultKey(vchPubKey))
{
return QString::fromStdString(PubKeyToAddress(vchPubKey));
- } else {
+ }
+ else
+ {
return QString();
}
}
@@ -116,9 +118,13 @@ ClientModel::StatusCode ClientModel::sendCoins(const QString &payTo, qint64 payA
std::string strError = SendMoney(scriptPubKey, payAmount, wtx, true);
if (strError == "")
+ {
return OK;
+ }
else if (strError == "ABORTED")
+ {
return Aborted;
+ }
else
{
emit error(tr("Sending..."), QString::fromStdString(strError));