Commit 7357364d authored by Olivier SOLDANO's avatar Olivier SOLDANO Committed by Anthony Léonard

use right api of getNumber to avoid smartlist dup

duplication was occuring in the smartlist whenever a contact method
was added from the searchbar. This was due to  the use of
getNumber(URI&,QString&) instead of getNumber(const QString&,
Account*, const QString&)

Change-Id: I3a0f4f8d129d6022b1e79168f121c7421c60e1ac
Reviewed-by: default avatarAnthony Léonard <>
parent 5d4a1ffa
......@@ -642,7 +642,7 @@ CallWidget::settingsButtonClicked()
CallWidget::searchContactLineEditEntry(const URI &uri)
auto cm = PhoneDirectoryModel::instance().getNumber(uri);
auto cm = PhoneDirectoryModel::instance().getNumber(uri, getSelectedAccount());
// if its a new CM, bring it to the top
if (cm->lastUsed() == 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment