changeset 1491:f057c235426f

Fix up previous patch.
author zas_
date Mon, 30 Mar 2009 17:52:14 +0000
parents b924293cf6c8
children c350242b1a5d
files src/desktop_file.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/desktop_file.c	Mon Mar 30 17:05:31 2009 +0000
+++ b/src/desktop_file.c	Mon Mar 30 17:52:14 2009 +0000
@@ -118,7 +118,12 @@
 {
 	EditorWindow *ew = data;
 	const gchar *content = gtk_entry_get_text(GTK_ENTRY(ew->entry));
-	gboolean modified = (!ew->desktop_name && *content);
+	gboolean modified = ew->modified;
+
+	if (!modified)
+		{
+		modified = (!ew->desktop_name && *content);
+		}
 
 	if (!modified)
 		{