aboutsummaryrefslogtreecommitdiff
path: root/src/qt/editaddressdialog.h
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2018-04-10 16:27:40 -0400
committerJames O'Beirne <james.obeirne@gmail.com>2018-04-25 13:08:53 -0400
commit8cdcaee4c7b256c5c3b70f1cfb04a5fb547311cd (patch)
tree493a6b325a9d46beafa0444ad570a321022a34a5 /src/qt/editaddressdialog.h
parentc5b277033a72650c221084ec0f1326623a810fd0 (diff)
downloadbitcoin-8cdcaee4c7b256c5c3b70f1cfb04a5fb547311cd.tar.xz
[qt] Display more helpful message when adding a send address has failed
Addresses #12796. When we're unable to add a sending address to the address book because it already exists as a receiving address, display a message indicating as much. This should help avoid confusion about an address supposedly already in the book but which isn't currently visible in the interface.
Diffstat (limited to 'src/qt/editaddressdialog.h')
-rw-r--r--src/qt/editaddressdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/editaddressdialog.h b/src/qt/editaddressdialog.h
index 41c5d1708a..fb3d90077e 100644
--- a/src/qt/editaddressdialog.h
+++ b/src/qt/editaddressdialog.h
@@ -45,6 +45,9 @@ public Q_SLOTS:
private:
bool saveCurrentRow();
+ /** Return a descriptive string when adding an already-existing address fails. */
+ QString getDuplicateAddressWarning() const;
+
Ui::EditAddressDialog *ui;
QDataWidgetMapper *mapper;
Mode mode;