[gedit-plugins] Do not show error if the file doesn't exists, as we are creating it in gedit.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Do not show error if the file doesn't exists, as we are creating it in gedit.
- Date: Sun, 22 Nov 2009 15:03:08 +0000 (UTC)
commit 218c32ac26f1af2f40ed490e42258bde7edcd36e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Nov 22 16:02:18 2009 +0100
Do not show error if the file doesn't exists, as we are creating it in gedit.
plugins/bookmarks/gedit-bookmarks-plugin.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/bookmarks/gedit-bookmarks-plugin.c b/plugins/bookmarks/gedit-bookmarks-plugin.c
index 54155d7..539d37f 100644
--- a/plugins/bookmarks/gedit-bookmarks-plugin.c
+++ b/plugins/bookmarks/gedit-bookmarks-plugin.c
@@ -368,7 +368,8 @@ load_bookmark_query_info_cb (GFile *source,
if (info == NULL)
{
- g_warning ("%s", error->message);
+ if (error->code != G_FILE_ERROR_ISDIR)
+ g_warning ("%s", error->message);
g_error_free (error);
return;
}
@@ -480,7 +481,8 @@ save_bookmarks_query_info_cb (GFile *source,
if (info == NULL)
{
- g_warning ("%s", error->message);
+ if (error->code != G_FILE_ERROR_ISDIR)
+ g_warning ("%s", error->message);
g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]