[gnome-latex] latexila -> gnome-latex migration: don't print warning in valid case
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex] latexila -> gnome-latex migration: don't print warning in valid case
- Date: Tue, 27 Mar 2018 12:05:28 +0000 (UTC)
commit f0e1fef9c139c34a34d55ca6812af1e3d6f883fc
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Mar 27 14:03:37 2018 +0200
latexila -> gnome-latex migration: don't print warning in valid case
src/liblatexila/latexila-utils.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/liblatexila/latexila-utils.c b/src/liblatexila/latexila-utils.c
index 1acb737..9b6669c 100644
--- a/src/liblatexila/latexila-utils.c
+++ b/src/liblatexila/latexila-utils.c
@@ -605,6 +605,12 @@ 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))
+ {
+ /* Do not overwrite @glatex_file if it already exists. */
+ g_clear_error (&error);
+ }
+
out:
if (error != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]