aboutsummaryrefslogtreecommitdiff
path: root/src/qt/editaddressdialog.cpp
diff options
context:
space:
mode:
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;
+}