diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-05-15 19:31:20 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-05-15 19:31:20 +0200 |
| commit | 992ff49b43cd9110fc8ce41151f7555458dcf4dc (patch) | |
| tree | 589c25b9608f671e9ca4be7f32e384c931ab19a7 /gui/src/addressbookdialog.cpp | |
| parent | update to bitcoin-git (diff) | |
| download | discoin-992ff49b43cd9110fc8ce41151f7555458dcf4dc.tar.xz discoin-992ff49b43cd9110fc8ce41151f7555458dcf4dc.zip | |
make send coins dialog more user friendly (better checking)
Diffstat (limited to 'gui/src/addressbookdialog.cpp')
| -rw-r--r-- | gui/src/addressbookdialog.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gui/src/addressbookdialog.cpp b/gui/src/addressbookdialog.cpp index 71543f11a..9ad18f1cd 100644 --- a/gui/src/addressbookdialog.cpp +++ b/gui/src/addressbookdialog.cpp @@ -127,6 +127,12 @@ void AddressBookDialog::on_buttonBox_accepted() QVariant address = table->model()->data(index); returnValue = address.toString(); } - - accept(); + if(!returnValue.isEmpty()) + { + accept(); + } + else + { + reject(); + } } |