mirror of https://github.com/f1xpl/openauto.git
Fix condition of adding address to the recent list
parent
9db15b953e
commit
9c52942122
|
@ -46,7 +46,7 @@ void RecentAddressesList::read()
|
||||||
|
|
||||||
void RecentAddressesList::insertAddress(const std::string& address)
|
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);
|
list_.push_front(address);
|
||||||
this->save();
|
this->save();
|
||||||
|
|
Loading…
Reference in New Issue