Skip to content

Commit

Permalink
Fix condition of adding address to the recent list
Browse files Browse the repository at this point in the history
  • Loading branch information
f1xpl committed Mar 25, 2018
1 parent 9db15b9 commit 9c52942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoapp/Configuration/RecentAddressesList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9c52942

Please sign in to comment.