[geany/geany] 06661f: Mark cloned documents as modified

Nick Treleaven git-noreply at geany.org
Fri Nov 23 15:37:04 UTC 2012

Branch:      refs/heads/master
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Fri, 23 Nov 2012 15:37:04 UTC
Commit:      06661f36a530c409487d6f03351afb0799f520ff

Log Message:
Mark cloned documents as modified

This helps avoid accidental data loss.

Modified Paths:

Modified: src/document.c
1 files changed, 1 insertions(+), 0 deletions(-)
@@ -2752,6 +2752,7 @@ G_MODULE_EXPORT void on_clone1_activate(GtkMenuItem *menuitem, gpointer user_dat
 	sci_get_text(old_doc->editor->sci, len, text);
 	doc = document_new_file(NULL, old_doc->file_type, text);
+	document_set_text_changed(doc, TRUE);
 	/* copy file properties */
 	doc->editor->line_wrapping = old_doc->editor->line_wrapping;

This E-Mail was brought to you by github_commit_mail.py (Source: TBD).

More information about the Commits mailing list