[epiphany/gnome-3-28] profile-migrator: Perform search engine migration only in browser mode



commit 33fc372d1a895db201981832c636f9933181963f
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]