[gnome-latex] latexila -> gnome-latex migration: handle gracefully another error
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] latexila -> gnome-latex migration: handle gracefully another error
- Date: Tue, 27 Mar 2018 13:06:15 +0000 (UTC)
commit 0fc84d94b6507eddf9972a3e3f7c9290e7159f8f
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Mar 27 14:52:16 2018 +0200
latexila -> gnome-latex migration: handle gracefully another error
src/liblatexila/latexila-utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/liblatexila/latexila-utils.c b/src/liblatexila/latexila-utils.c
index 9b6669c..af8bfa6 100644
--- a/src/liblatexila/latexila-utils.c
+++ b/src/liblatexila/latexila-utils.c
@@ -605,9 +605,9 @@ migrate_latexila_to_gnome_latex_most_used_symbols (void)
NULL, NULL, NULL,
&error);
- if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS))
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) ||
+ g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS))
{
- /* Do not overwrite @glatex_file if it already exists. */
g_clear_error (&error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]