Delete search history when clearing history

This commit is contained in:
Samuel Creshal 2010-07-06 10:42:30 +02:00 committed by Christian Dywan
parent b4a21723fc
commit 922a94fc98

View file

@ -4164,9 +4164,18 @@ midori_browser_clear_private_data_response_cb (GtkWidget* dialog,
if (sqlite3_exec (db, sqlcmd, NULL, NULL, &errmsg) != SQLITE_OK)
{
g_printerr (_("Failed to remove history item: %s\n"), errmsg);
g_printerr (_("Failed to clear history: %s\n"), errmsg);
sqlite3_free (errmsg);
}
else
{
sqlcmd = "DELETE FROM search";
if (sqlite3_exec (db, sqlcmd, NULL, NULL, &errmsg) != SQLITE_OK)
{
g_printerr (_("Failed to clear search history: %s\n"), errmsg);
sqlite3_free (errmsg);
}
}
clear_prefs |= MIDORI_CLEAR_HISTORY;
}
#endif