[gnome-builder] GbEditorView: ignore file not found errors
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] GbEditorView: ignore file not found errors
- Date: Fri, 12 Dec 2014 21:19:25 +0000 (UTC)
commit b6b24807b02e5abe2f4dfc688f125458aea4369c
Author: Christian Hergert <christian hergert me>
Date: Fri Dec 12 13:19:19 2014 -0800
GbEditorView: ignore file not found errors
src/editor/gb-editor-view.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-view.c b/src/editor/gb-editor-view.c
index 1ea04b8..0218fb2 100644
--- a/src/editor/gb-editor-view.c
+++ b/src/editor/gb-editor-view.c
@@ -275,6 +275,12 @@ gb_editor_view_notify_error (GbEditorView *view,
error = gb_editor_document_get_error (document);
+ /* Ignore file not found errors */
+ if (error &&
+ (error->domain == G_IO_ERROR) &&
+ (error->code == G_IO_ERROR_NOT_FOUND))
+ error = NULL;
+
if (!error)
{
if (gtk_revealer_get_reveal_child (view->priv->error_revealer))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]