Fix condition of adding address to the recent list

pull/53/head
michal.szwaj 2018-03-25 03:17:16 +02:00
parent 9db15b953e
commit 9c52942122
1 changed files with 1 additions and 1 deletions

View File

@ -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();