diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2019-04-29 16:39:45 -0500 |
---|---|---|
committer | Jan-Michael Brummer <jan.brummer@tabos.org> | 2019-05-01 09:36:41 +0000 |
commit | 7e7aa0fbd26147bb2b0aadd1e67fb3f65d9937e6 (patch) | |
tree | a56228da846bf40e8a5f6b22fee0ac4dd23f46d5 /lib/sync | |
parent | a83a62b73085552fac49dbabbc778f34dc255990 (diff) | |
download | epiphany-7e7aa0fbd26147bb2b0aadd1e67fb3f65d9937e6.tar.gz |
history-manager: avoid critical when deleting URLs not tracked by sync
Fixes #691
Diffstat (limited to 'lib/sync')
-rw-r--r-- | lib/sync/ephy-history-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sync/ephy-history-manager.c b/lib/sync/ephy-history-manager.c index 31914357d..4fa69cce9 100644 --- a/lib/sync/ephy-history-manager.c +++ b/lib/sync/ephy-history-manager.c @@ -91,6 +91,9 @@ url_visited_cb (EphyHistoryService *service, { EphyHistoryRecord *record; + if (!url->sync_id) + return; + record = ephy_history_record_new (url->sync_id, url->title, url->url, url->last_visit_time); g_signal_emit_by_name (self, "synchronizable-modified", record, TRUE); g_object_unref (record); @@ -103,6 +106,9 @@ url_deleted_cb (EphyHistoryService *service, { EphyHistoryRecord *record; + if (!url->sync_id) + return; + record = ephy_history_record_new (url->sync_id, url->title, url->url, url->last_visit_time); g_signal_emit_by_name (self, "synchronizable-deleted", record); g_object_unref (record); |