Fix up previous patch.
authorLaurent Monin <geeqie@norz.org>
Mon, 30 Mar 2009 17:52:14 +0000 (17:52 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 30 Mar 2009 17:52:14 +0000 (17:52 +0000)
src/desktop_file.c

index 0a9fc4c..e622552 100644 (file)
@@ -118,7 +118,12 @@ static void editor_window_entry_changed_cb(GtkWidget *widget, gpointer data)
 {
        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)
                {