comparison src/desktop_file.c @ 1491:f057c235426f

Fix up previous patch.
author zas_
date Mon, 30 Mar 2009 17:52:14 +0000
parents b924293cf6c8
children 03c22c05c6b6
comparison
equal deleted inserted replaced
1490:b924293cf6c8 1491:f057c235426f
116 116
117 static void editor_window_entry_changed_cb(GtkWidget *widget, gpointer data) 117 static void editor_window_entry_changed_cb(GtkWidget *widget, gpointer data)
118 { 118 {
119 EditorWindow *ew = data; 119 EditorWindow *ew = data;
120 const gchar *content = gtk_entry_get_text(GTK_ENTRY(ew->entry)); 120 const gchar *content = gtk_entry_get_text(GTK_ENTRY(ew->entry));
121 gboolean modified = (!ew->desktop_name && *content); 121 gboolean modified = ew->modified;
122
123 if (!modified)
124 {
125 modified = (!ew->desktop_name && *content);
126 }
122 127
123 if (!modified) 128 if (!modified)
124 { 129 {
125 modified = strcmp(ew->desktop_name, content); 130 modified = strcmp(ew->desktop_name, content);
126 } 131 }