aboutsummaryrefslogtreecommitdiff
path: root/gui/src/addresstablemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/addresstablemodel.cpp')
-rw-r--r--gui/src/addresstablemodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/addresstablemodel.cpp b/gui/src/addresstablemodel.cpp
index fbb2eb528b..1cbc1b5d1d 100644
--- a/gui/src/addresstablemodel.cpp
+++ b/gui/src/addresstablemodel.cpp
@@ -191,7 +191,7 @@ void AddressTableModel::updateList()
endResetModel();
}
-bool AddressTableModel::addRow(const QString &type, const QString &label, const QString &address)
+QString AddressTableModel::addRow(const QString &type, const QString &label, const QString &address)
{
std::string strLabel = label.toStdString();
std::string strAddress = address.toStdString();
@@ -203,7 +203,7 @@ bool AddressTableModel::addRow(const QString &type, const QString &label, const
{
if(mapAddressBook.count(strAddress))
{
- return false;
+ return QString();
}
}
} else if(type == Receive)
@@ -212,12 +212,12 @@ bool AddressTableModel::addRow(const QString &type, const QString &label, const
strAddress = PubKeyToAddress(GetKeyFromKeyPool());
} else
{
- return false;
+ return QString();
}
/* Add entry and update list */
SetAddressBookName(strAddress, strLabel);
updateList();
- return true;
+ return QString::fromStdString(strAddress);
}
bool AddressTableModel::removeRows(int row, int count, const QModelIndex & parent)