summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-08 17:41:58 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-08 17:41:58 (GMT)
commit1430874c1ce9d5e38a23bf27049ebc5f6a6619bb (patch)
tree5b57937b6b5a98244b8d63f969d2350eb00739ec /src/gui/panels
parent8002f34e4060e25cb3acee76a0c2ae2970f9e9dc (diff)
Provided a way to save the database updates from Python.
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/panels/history.c b/src/gui/panels/history.c
index 4383ed6..ac33c2c 100644
--- a/src/gui/panels/history.c
+++ b/src/gui/panels/history.c
@@ -614,7 +614,7 @@ static void do_history_undo(GtkButton *button, GHistoryPanel *panel)
gtk_tree_model_get(model, &iter, HTC_ITEM, &item, -1);
- client = g_loaded_binary_get_db_client(panel->binary);
+ client = g_loaded_binary_get_client(panel->binary, true);
g_hub_client_set_last_active(client, g_db_item_get_timestamp(item));
g_object_unref(G_OBJECT(client));
@@ -658,7 +658,7 @@ static void do_history_redo(GtkButton *button, GHistoryPanel *panel)
{
gtk_tree_model_get(model, &iter, HTC_ITEM, &item, -1);
- client = g_loaded_binary_get_db_client(panel->binary);
+ client = g_loaded_binary_get_client(panel->binary, true);
g_hub_client_set_last_active(client, g_db_item_get_timestamp(item));
g_object_unref(G_OBJECT(client));