From 9c529421227905da53870945357d344f39342f81 Mon Sep 17 00:00:00 2001 From: "michal.szwaj" Date: Sun, 25 Mar 2018 03:17:16 +0200 Subject: [PATCH] Fix condition of adding address to the recent list --- src/autoapp/Configuration/RecentAddressesList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autoapp/Configuration/RecentAddressesList.cpp b/src/autoapp/Configuration/RecentAddressesList.cpp index ebfa2d1..3e19214 100644 --- a/src/autoapp/Configuration/RecentAddressesList.cpp +++ b/src/autoapp/Configuration/RecentAddressesList.cpp @@ -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();