Fix condition of adding address to the recent list
This commit is contained in:
parent
9db15b953e
commit
9c52942122
@ -46,7 +46,7 @@ void RecentAddressesList::read()
|
||||
|
||||
void RecentAddressesList::insertAddress(const std::string& address)
|
||||
{
|
||||
if(std::find(list_.begin(), list_.end(), address) != list_.end())
|
||||
if(std::find(list_.begin(), list_.end(), address) == list_.end())
|
||||
{
|
||||
list_.push_front(address);
|
||||
this->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user