[epiphany/mcatanzaro/#1800: 84/86] window-commands: fix warning when opening import dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/#1800: 84/86] window-commands: fix warning when opening import dialog
- Date: Fri, 8 Jul 2022 18:17:04 +0000 (UTC)
commit d29a75adc0e1b12455d58197af76308a6f3c105a
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Fri Jun 3 11:32:14 2022 -0500
window-commands: fix warning when opening import dialog
This function is called to determine whether there exist Firefox
profiles or not, so it'd better not warn when there are none. This
condition can be detected via the NULL return value.
src/window-commands.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index f62a2e856..93ed5dab5 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -149,7 +149,7 @@ get_firefox_profiles (void)
NULL);
keyfile = g_key_file_new ();
g_key_file_load_from_file (keyfile, filename, G_KEY_FILE_NONE, &error);
- if (error) {
+ if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) {
g_warning ("Failed to load %s: %s", filename, error->message);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]