Add comment about throwing away read-only for renamed documents

This commit is contained in:
Nick Treleaven 2014-09-24 16:49:33 +01:00
parent 88a36268ef
commit 4ceb9fb1f2
2 changed files with 2 additions and 1 deletions

View File

@ -1655,6 +1655,7 @@ gboolean document_save_file_as(GeanyDocument *doc, const gchar *utf8_fname)
if (new_file)
{
// assume user wants to throw away read-only setting
sci_set_readonly(doc->editor->sci, FALSE);
doc->readonly = FALSE;
if (doc->priv->protected > 0)

View File

@ -93,7 +93,7 @@ typedef struct GeanyDocumentPrivate
time_t mtime;
/* ID of the idle callback updating the tag list */
guint tag_list_update_source;
/* Whether it's temoporarily protected (read-only and saving is prevented). Does
/* Whether it's temporarily protected (read-only and saving needs confirmation). Does
* not imply doc->readonly as writable files can be protected */
gint protected;
/* Save pointer to info bars allowing to cancel them programatically (to avoid multiple ones) */