aboutsummaryrefslogtreecommitdiff
path: root/src/qt/editaddressdialog.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-08-04 21:31:47 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-08-04 21:36:14 +0200
commitffccb56914bd317c438bf055a32bc89dce690913 (patch)
treee57f81ab1256dddf6193215a0cf7ae2b9619de97 /src/qt/editaddressdialog.cpp
parent2351a3fc9f32568a3e90b01f6d9ee9d0cc6b281e (diff)
select new address immediately after creation
Diffstat (limited to 'src/qt/editaddressdialog.cpp')
-rw-r--r--src/qt/editaddressdialog.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/qt/editaddressdialog.cpp b/src/qt/editaddressdialog.cpp
index a0b27e83bb..2b3d9bf0f0 100644
--- a/src/qt/editaddressdialog.cpp
+++ b/src/qt/editaddressdialog.cpp
@@ -54,9 +54,8 @@ void EditAddressDialog::loadRow(int row)
mapper->setCurrentIndex(row);
}
-QString EditAddressDialog::saveCurrentRow()
+bool EditAddressDialog::saveCurrentRow()
{
- QString address;
switch(mode)
{
case NewReceivingAddress:
@@ -74,12 +73,12 @@ QString EditAddressDialog::saveCurrentRow()
}
break;
}
- return address;
+ return !address.isEmpty();
}
void EditAddressDialog::accept()
{
- if(saveCurrentRow().isEmpty())
+ if(!saveCurrentRow())
{
switch(model->getEditStatus())
{
@@ -100,3 +99,7 @@ void EditAddressDialog::accept()
QDialog::accept();
}
+QString EditAddressDialog::getAddress() const
+{
+ return address;
+}