anjuta r4208 - in trunk: . plugins/editor
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4208 - in trunk: . plugins/editor
- Date: Mon, 1 Sep 2008 20:35:11 +0000 (UTC)
Author: sgranjoux
Date: Mon Sep 1 20:35:11 2008
New Revision: 4208
URL: http://svn.gnome.org/viewvc/anjuta?rev=4208&view=rev
Log:
* plugins/editor/text_editor.c:
Fix #549950 - crash while saving a file
Modified:
trunk/ChangeLog
trunk/plugins/editor/text_editor.c
Modified: trunk/plugins/editor/text_editor.c
==============================================================================
--- trunk/plugins/editor/text_editor.c (original)
+++ trunk/plugins/editor/text_editor.c Mon Sep 1 20:35:11 2008
@@ -1401,7 +1401,7 @@
gboolean result;
gio_uri = g_file_new_for_uri (uri);
- stream = g_file_replace (gio_uri, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL);
+ stream = g_file_replace (gio_uri, NULL, FALSE, G_FILE_CREATE_NONE, NULL, error);
if (stream == NULL)
return FALSE;
@@ -1562,6 +1562,8 @@
if (!save_to_file (te, te->uri, &error))
{
text_editor_thaw (te);
+ g_return_val_if_fail (error != NULL, FALSE);
+
anjuta_util_dialog_error (parent,
_("Could not save intermediate file %s: %s"),
te->uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]