Delete search history when clearing history
This commit is contained in:
parent
b4a21723fc
commit
922a94fc98
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue