Issue warning if adding to history fails
This commit is contained in:
parent
7b9781666a
commit
448e119b0b
1 changed files with 2 additions and 0 deletions
|
@ -471,6 +471,7 @@ midori_browser_update_history_title (MidoriBrowser* browser,
|
||||||
g_return_if_fail (katze_item_get_uri (item) != NULL);
|
g_return_if_fail (katze_item_get_uri (item) != NULL);
|
||||||
|
|
||||||
db = g_object_get_data (G_OBJECT (browser->history), "db");
|
db = g_object_get_data (G_OBJECT (browser->history), "db");
|
||||||
|
g_return_if_fail (db != NULL);
|
||||||
if (!stmt)
|
if (!stmt)
|
||||||
{
|
{
|
||||||
const gchar* sqlcmd;
|
const gchar* sqlcmd;
|
||||||
|
@ -5327,6 +5328,7 @@ midori_browser_new_history_item (MidoriBrowser* browser,
|
||||||
day = sokoke_time_t_to_julian (&now);
|
day = sokoke_time_t_to_julian (&now);
|
||||||
|
|
||||||
db = g_object_get_data (G_OBJECT (browser->history), "db");
|
db = g_object_get_data (G_OBJECT (browser->history), "db");
|
||||||
|
g_return_if_fail (db != NULL);
|
||||||
if (!stmt)
|
if (!stmt)
|
||||||
{
|
{
|
||||||
const gchar* sqlcmd;
|
const gchar* sqlcmd;
|
||||||
|
|
Loading…
Reference in a new issue