[epiphany/gnome-3-18] 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/gnome-3-18] history-service: Fix write to database in read-only mode
- Date: Sat, 4 Mar 2017 20:37:01 +0000 (UTC)
commit 5b9596cef4625749452c88c774925bd0db711103
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 3a3e672..307e915 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -416,7 +416,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->priv->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]