summaryrefslogtreecommitdiff
path: root/gsearchtool/gsearchtool-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsearchtool/gsearchtool-support.c')
-rw-r--r--gsearchtool/gsearchtool-support.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gsearchtool/gsearchtool-support.c b/gsearchtool/gsearchtool-support.c
index 182934ca..a120967b 100644
--- a/gsearchtool/gsearchtool-support.c
+++ b/gsearchtool/gsearchtool-support.c
@@ -92,8 +92,6 @@ is_quick_search_excluded_path (const gchar * path)
gboolean results = FALSE;
gint i;
- settings = g_settings_new ("org.mate.search-tool");
-
dir = g_strdup (path);
/* Remove trailing G_DIR_SEPARATOR. */
@@ -109,6 +107,8 @@ is_quick_search_excluded_path (const gchar * path)
}
g_free (dir);
+ settings = g_settings_new ("org.mate.search-tool");
+
/* Check path against the Quick-Search-Excluded-Paths list. */
exclude_path_list = g_settings_get_strv (settings, "quick-search-excluded-paths");
@@ -169,8 +169,6 @@ is_second_scan_excluded_path (const gchar * path)
gboolean results = FALSE;
gint i;
- settings = g_settings_new ("org.mate.search-tool");
-
dir = g_strdup (path);
/* Remove trailing G_DIR_SEPARATOR. */
@@ -186,6 +184,8 @@ is_second_scan_excluded_path (const gchar * path)
}
g_free (dir);
+ settings = g_settings_new ("org.mate.search-tool");
+
/* Check path against the Quick-Search-Excluded-Paths list. */
exclude_path_list = g_settings_get_strv (settings, "quick-search-second-scan-excluded-paths");