[epiphany] profile-migrator: Perform search engine migration only in browser mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] profile-migrator: Perform search engine migration only in browser mode
- Date: Thu, 26 Apr 2018 17:05:56 +0000 (UTC)
commit ab129f20d577a46fcc183bb84519d9b93bfb3d9a
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon Apr 23 09:51:43 2018 -0500
profile-migrator: Perform search engine migration only in browser mode
src/profile-migrator/ephy-profile-migrator.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/profile-migrator/ephy-profile-migrator.c b/src/profile-migrator/ephy-profile-migrator.c
index 42e23a0..79dfcde 100644
--- a/src/profile-migrator/ephy-profile-migrator.c
+++ b/src/profile-migrator/ephy-profile-migrator.c
@@ -610,6 +610,11 @@ migrate_search_engines (void)
char *default_search_engine_address;
const char *default_search_engine_name = _("Search the Web");
+ /* Search engine settings are only used in browser mode, so no need to migrate
+ * if we are not in browser mode. */
+ if (!ephy_dot_dir_is_default ())
+ return;
+
bookmarks_manager = ephy_bookmarks_manager_new ();
search_engine_manager = ephy_search_engine_manager_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]