[epiphany] history-service: Fix write to database in read-only mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] history-service: Fix write to database in read-only mode
- Date: Sun, 19 Feb 2017 17:06:58 +0000 (UTC)
commit fd19259bddca1ca87116b34bb27beec356113e7e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Feb 19 11:05:26 2017 -0600
history-service: Fix write to database in read-only mode
Now that SQLite enforces read-only mode for us, bugs like this will be
uncovered....
https://bugzilla.gnome.org/show_bug.cgi?id=778649
lib/history/ephy-history-service-hosts-table.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c
index ab6046d..45d8d04 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -410,7 +410,8 @@ ephy_history_service_get_host_row_from_url (EphyHistoryService *self,
if (host == NULL) {
host = ephy_history_host_new (host_locations->data, hostname, 0, 1.0);
- ephy_history_service_add_host_row (self, host);
+ if (!self->read_only)
+ ephy_history_service_add_host_row (self, host);
}
g_free (hostname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]