text.Replace(L"'", L"''");
query.Append(L"SELECT * FROM ");
query.Append(bookmarkTable);
- query.Append(L" WHERE (TITLE LIKE '%");
+ query.Append(L" WHERE ((TITLE LIKE '%");
query.Append(text);
query.Append("%')");
query.Append(" OR ");
query.Append(L"(ADDRESS LIKE '%");
query.Append(text);
- query.Append("%')");
- query.Append(" AND ADDRESS != ''");
+ query.Append("%'))");
+ query.Append(" AND (ADDRESS != '')");
//Append LIMIT
if (limit > 0)
{
query.Append(startIndex);
}
}
-
+ AppLog("Query is %ls", query.GetPointer());
r = BookmarkPresentationModel::ExecuteQuery(query, count);
TryCatch( r == E_SUCCESS,,"BookmarkPresentationModel::GetSearchBookmark query failed %s",GetErrorMessage(r));
void MainForm::OnFaviconReceived(const Tizen::Graphics::Bitmap& favicon)
{
AppLog("MainForm::OnFaviconReceived");
- if (__pWebViewer != null && __pHistory != null)
+ if (__pWebViewer != null && __pHistory != null && __pWindowInfo != null && (__pWindowInfo->pageUrl.CompareTo(__pHistory->GetHistoryUrl()) == 0))
{
HistoryPresentationModel::GetInstance()->UpdateHistoryFavIcon(*__pHistory, *(__pWebViewer->GetFaviconN()));
}