diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-06-07 18:59:01 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-06-07 18:59:01 +0200 |
| commit | 8e86dca256624d76022be3b461b736dfc1f87625 (patch) | |
| tree | 96bc89eaca145fff87bbda6a9c4fd4984cb61c51 /gui/src/clientmodel.cpp | |
| parent | align "amount" input in send coins dialog to the right (diff) | |
| download | discoin-8e86dca256624d76022be3b461b736dfc1f87625.tar.xz discoin-8e86dca256624d76022be3b461b736dfc1f87625.zip | |
consistent bracing style
Diffstat (limited to 'gui/src/clientmodel.cpp')
| -rw-r--r-- | gui/src/clientmodel.cpp | 8 |
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)); |