mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Wallet: Add CAddressBookData::IsChange which returns true iff label has never been set
This commit is contained in:
parent
144b2f85da
commit
65b6bdc2b1
1 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,7 @@ public:
|
|||
class CAddressBookData
|
||||
{
|
||||
private:
|
||||
bool m_change{true};
|
||||
std::string m_label;
|
||||
public:
|
||||
const std::string& name;
|
||||
|
@ -192,7 +193,9 @@ public:
|
|||
typedef std::map<std::string, std::string> StringMap;
|
||||
StringMap destdata;
|
||||
|
||||
bool IsChange() const { return m_change; }
|
||||
void SetLabel(const std::string& label) {
|
||||
m_change = false;
|
||||
m_label = label;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue