when database changes occur.
Change-Id: I0d57b7bef8f47d0b7579bd056a88932b5a62f66f
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
void DialerView::onDbChanged(const char *uri)
{
std::string number = m_Entry->getNumber();
- m_SearchEngine.searchFromScratch(number);
- m_SearchControl->setResults(m_SearchEngine.getSearchResult());
+ if (!number.empty()) {
+ m_SearchEngine.searchFromScratch(number);
+ m_SearchControl->setResults(m_SearchEngine.getSearchResult());
+ }
}
void DialerView::launchCall(const std::string &number)